/* ==========================================================
   Site-wide visual polish. Loaded after style.css and store.css,
   so it only refines what is already there (same palette).
   ========================================================== */

:root {
    --sv-grad: linear-gradient(135deg, #52ad1c 0%, #3b870f 100%);
    --sv-shadow-card: 0 14px 40px -18px rgba(34, 60, 20, 0.18);
    --sv-shadow-btn: 0 10px 22px -8px rgba(66, 149, 17, 0.55);
    --sv-dots: radial-gradient(circle at 1px 1px, rgba(66, 149, 17, 0.11) 1px, transparent 0);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(66, 149, 17, 0.2);
    color: #1b3a0b;
}

/* ---------- Header ---------- */

.navbar-custom {
    border-bottom: 1px solid rgba(66, 149, 17, 0.08);
}

.sticky-scroll {
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 10px 30px -12px rgba(25, 50, 12, 0.25);
}

@media (min-width: 993px) {
    .navbar-nav a {
        position: relative;
        transition: color 0.25s ease;
    }

    .navbar-nav a::after {
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 0;
        height: 2px;
        border-radius: 2px;
        background: #429511;
        content: "";
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .navbar-nav a:hover::after,
    .navbar-nav .nav-item.active a::after {
        width: 22px;
    }

    .navbar-nav .nav-item.active a {
        color: #429511 !important;
    }
}

.header-action:hover {
    background-color: #f2f8ef;
}

/* ---------- Inner page backdrop ---------- */

.book-detail-section,
.book-cart-section,
.book-checkout-section,
.book-contact-section,
.book-login-section,
.book-page-content,
.silent-about-section,
.sv-account,
.book-product-section:has(.sv-shop-layout) {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #f3f9ef 0%, rgba(243, 249, 239, 0) 420px), #ffffff;
}

.book-detail-section::before,
.book-cart-section::before,
.book-checkout-section::before,
.book-contact-section::before,
.book-login-section::before,
.book-page-content::before,
.silent-about-section::before,
.sv-account::before,
.book-product-section:has(.sv-shop-layout)::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 380px;
    background: var(--sv-dots) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
    pointer-events: none;
    content: "";
}

/* Category / page headings get the same accent bar as the home page */
.book-product-heading h2 {
    position: relative;
    padding-left: 16px;
    font-family: "Kanit", sans-serif;
}

.book-product-heading h2::before {
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 5px;
    border-radius: 5px;
    background: linear-gradient(180deg, #6dbb33, #429511);
    content: "";
}

/* ---------- Cards & panels ---------- */

.book-cart-items,
.book-checkout-form-card,
.book-contact-form-card,
.sv-card,
.sv-filters,
.silent-top-books {
    border-color: #edf2ea;
    border-radius: 20px;
    box-shadow: var(--sv-shadow-card);
}

.book-cart-summary,
.book-checkout-summary {
    border-color: rgba(66, 149, 17, 0.12);
    border-radius: 20px;
    background:
        var(--sv-dots) 0 0 / 20px 20px,
        linear-gradient(160deg, #f5fbf2 0%, #e6f2de 100%);
    box-shadow: var(--sv-shadow-card);
}

.book-login-wrapper {
    position: relative;
    border-color: #edf2ea;
    box-shadow: 0 30px 70px -30px rgba(34, 60, 20, 0.3);
}

.book-login-wrapper::before {
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: var(--sv-grad);
    content: "";
}

/* ---------- Buttons ---------- */

.sv-btn:not(.sv-btn-outline):not(.sv-btn-danger),
.book-login-submit,
.book-contact-submit,
.book-cart-checkout-btn,
.book-checkout-place-btn,
.silent-about-btn,
.book-product-category-btn:hover {
    box-shadow: var(--sv-shadow-btn);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.sv-btn:not(.sv-btn-outline):not(.sv-btn-danger):not(:hover):not(:disabled),
.book-login-submit:not(:hover):not(:disabled),
.book-contact-submit:not(:hover):not(:disabled),
.book-cart-checkout-btn:not(:hover),
.book-checkout-place-btn:not(:hover):not(:disabled),
.silent-about-btn:not(:hover) {
    background-image: var(--sv-grad);
}

.sv-btn:not(.sv-btn-outline):not(.sv-btn-danger):hover,
.book-login-submit:hover,
.book-contact-submit:hover,
.book-cart-checkout-btn:hover,
.book-checkout-place-btn:hover,
.silent-about-btn:hover {
    box-shadow: 0 12px 24px -10px rgba(34, 34, 34, 0.5);
    transform: translateY(-2px);
}

/* ---------- Form fields ---------- */

:is(.book-contact-section, .book-checkout-section, .book-cart-section, .book-detail-section, .sv-account)
    :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

:is(.book-contact-section, .book-checkout-section, .book-cart-section, .book-detail-section, .sv-account)
    :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus {
    border-color: #429511 !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(66, 149, 17, 0.12) !important;
    outline: none;
}

.book-login-input {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.book-login-input:focus-within {
    border-color: #429511 !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(66, 149, 17, 0.12);
}

/* ---------- Shop page ---------- */

.sv-filter-list a {
    margin: 0 -10px;
    padding: 7px 10px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sv-filter-list a.active,
.sv-filter-list a:hover {
    background: #f2f8ef;
}

.sv-filter-list a.active {
    font-weight: 600;
}

.sv-shop-toolbar select {
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(66, 149, 17, 0.08);
}

/* ---------- Product detail ---------- */

.book-detail-image {
    background:
        var(--sv-dots) 0 0 / 20px 20px,
        linear-gradient(160deg, #f5fbf2 0%, #e3f1da 100%);
    box-shadow: inset 0 0 0 1px rgba(66, 149, 17, 0.08);
}

.book-detail-image img {
    filter: drop-shadow(0 26px 28px rgba(34, 60, 20, 0.28));
}

.sv-gallery-thumbs button {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sv-gallery-thumbs button:hover {
    transform: translateY(-2px);
}

.sv-gallery-thumbs button.active {
    box-shadow: 0 8px 18px -8px rgba(66, 149, 17, 0.6);
}

/* ---------- Cart ---------- */

.book-cart-item {
    transition: background-color 0.25s ease;
}

.book-cart-item:hover {
    background-color: #fafdf8;
}

.book-cart-image {
    background: linear-gradient(160deg, #f5fbf2 0%, #e3f1da 100%);
}

.book-cart-image img {
    filter: drop-shadow(0 8px 10px rgba(34, 60, 20, 0.2));
}

/* ---------- Contact ---------- */

.book-contact-info {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        linear-gradient(150deg, #4fa81a 0%, #357a0d 100%);
    box-shadow: 0 30px 60px -28px rgba(53, 122, 13, 0.7);
}

.book-contact-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.book-contact-info-item:hover .book-contact-icon {
    transform: scale(1.08);
}

.book-contact-social a {
    transition: transform 0.25s ease;
}

.book-contact-social a:hover {
    transform: translateY(-3px);
}

/* ---------- About ---------- */

.silent-about-image {
    box-shadow: 0 30px 60px -30px rgba(34, 60, 20, 0.45);
}

.silent-about-author,
.silent-about-award {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.silent-about-author:hover,
.silent-about-award:hover {
    box-shadow: var(--sv-shadow-card);
    transform: translateY(-3px);
}

/* ---------- Content pages (privacy, terms…) ---------- */

.book-page-content .col-lg-9 {
    padding: 48px 52px;
    border: 1px solid #edf2ea;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--sv-shadow-card);
}

.book-page-content h1 {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 20px;
    font-family: "Kanit", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.book-page-content h1::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--sv-grad);
    content: "";
}

.book-page-content h2,
.book-page-content h3 {
    position: relative;
    margin: 34px 0 12px;
    padding-left: 14px;
    color: #222222;
    font-size: 21px;
    font-weight: 600;
}

.book-page-content h2::before,
.book-page-content h3::before {
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: #429511;
    content: "";
}

.book-page-content p,
.book-page-content li {
    color: #555555;
    font-size: 15px;
}

.book-page-content a {
    color: #429511;
    border-bottom: 1px solid rgba(66, 149, 17, 0.35);
}

/* ---------- Footer ---------- */

.book-footer-section {
    position: relative;
    background:
        radial-gradient(circle at 0% 0%, rgba(66, 149, 17, 0.16) 0%, transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(66, 149, 17, 0.1) 0%, transparent 40%),
        #1d211b;
}

.book-footer-section::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #429511 30%, #6dbb33 70%, transparent);
    content: "";
}

.book-footer-links a {
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.book-footer-links a:hover {
    color: #7cc94a !important;
    transform: translateX(4px);
}

.book-footer-socials a {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-footer-socials a:hover {
    box-shadow: 0 8px 18px -6px rgba(109, 187, 51, 0.7);
    transform: translateY(-3px);
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
    .book-page-content .col-lg-9 {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .book-page-content h2,
    .book-page-content h3 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-btn,
    .book-login-submit,
    .book-contact-submit,
    .book-cart-checkout-btn,
    .book-checkout-place-btn,
    .silent-about-btn,
    .book-footer-links a,
    .book-footer-socials a {
        transform: none !important;
    }
}


/* ==========================================================
   Customer account area
   ========================================================== */

/* ---------- Sidebar ---------- */

.sv-account-side {
    overflow: hidden;
    padding: 0 0 14px;
    border: 1px solid #edf2ea;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--sv-shadow-card);
}

.sv-account-user {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 26px 20px 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        var(--sv-grad);
}

.sv-account-user::after {
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border: 22px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.sv-account-user > div {
    min-width: 0;
}

.sv-account-user .sv-avatar {
    display: grid;
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255, 255, 255, 0.85);
    background: #ffffff;
    color: #429511;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.3);
}

.sv-account-user strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sv-account-user div span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

.sv-account-nav {
    padding: 0 12px;
}

.sv-account-nav a,
.sv-account-nav button {
    margin-bottom: 4px;
    padding: 8px 12px 8px 8px;
    border-radius: 14px;
    font-weight: 500;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.sv-account-nav a i,
.sv-account-nav button i {
    display: grid;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: #f2f8ef;
    font-size: 14px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.sv-account-nav a:hover,
.sv-account-nav button:hover {
    background: #f6fbf3;
    color: #222222;
}

.sv-account-nav a.active {
    background: var(--sv-grad);
    box-shadow: var(--sv-shadow-btn);
    color: #ffffff;
}

.sv-account-nav a.active i {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sv-account-nav a.active em {
    background: #ffffff;
    color: #429511;
}

.sv-account-nav form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e3ebdf;
}

.sv-account-nav button i {
    background: #fdf0f0;
    color: #c0392b;
}

.sv-account-nav button:hover {
    background: #fdf0f0;
    color: #c0392b;
}

/* ---------- Page heading ---------- */

.sv-account-head {
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2ea;
}

.sv-account-head span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
}

.sv-account-head span::before {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #429511;
    content: "";
}

.sv-account-head h1 {
    font-family: "Kanit", sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* ---------- Stats ---------- */

.sv-stat {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-color: #edf2ea;
    border-radius: 20px;
    box-shadow: var(--sv-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sv-stat::after {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(66, 149, 17, 0.06);
    content: "";
}

.sv-stat:hover {
    box-shadow: 0 22px 44px -20px rgba(34, 60, 20, 0.3);
    transform: translateY(-4px);
}

.sv-stat i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #f2f8ef;
    font-size: 17px;
}

.sv-stat:first-child {
    border-color: transparent;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        var(--sv-grad);
}

.sv-stat:first-child::after {
    background: rgba(255, 255, 255, 0.1);
}

.sv-stat:first-child i {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sv-stat:first-child strong,
.sv-stat:first-child span {
    color: #ffffff;
}

.sv-stat strong {
    margin-top: 14px;
    font-family: "Kanit", sans-serif;
    font-size: 26px;
    font-weight: 600;
}

/* ---------- Cards inside the account ---------- */

.sv-account .sv-card {
    padding: 26px 28px;
    border-radius: 22px;
}

.sv-account .sv-card h3 {
    position: relative;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 600;
}

.sv-account .sv-card h3::before {
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: #429511;
    content: "";
}

.sv-account .sv-card a.sv-muted {
    color: #429511 !important;
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Empty states ---------- */

.sv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 16px;
    text-align: center;
}

.sv-empty-sm {
    padding: 18px 10px;
}

.sv-empty-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background:
        var(--sv-dots) 0 0 / 12px 12px,
        linear-gradient(160deg, #f5fbf2 0%, #e3f1da 100%);
    box-shadow: 0 0 0 8px #f8fcf6;
    color: #429511;
    font-size: 24px;
}

.sv-empty-sm .sv-empty-icon {
    width: 54px;
    height: 54px;
    font-size: 19px;
}

/* ---------- Order tabs & rows ---------- */

.sv-tabs {
    display: inline-flex;
    padding: 5px;
    border: 1px solid #edf2ea;
    border-radius: 50px;
    background: #ffffff;
    box-shadow: 0 6px 18px -10px rgba(34, 60, 20, 0.25);
}

.sv-tabs a {
    border-color: transparent;
    font-weight: 500;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.sv-tabs a:hover {
    color: #429511;
}

.sv-tabs a.active {
    border-color: transparent;
    background: var(--sv-grad);
    box-shadow: var(--sv-shadow-btn);
}

.sv-order-row {
    margin: 0 -14px;
    padding: 16px 14px;
    border-bottom-style: dashed;
    border-radius: 14px;
    transition: background-color 0.25s ease;
}

.sv-order-row:hover {
    background: #f8fcf6;
}

.sv-order-row h4 {
    font-weight: 600;
}

.sv-order-thumbs img {
    border: 2px solid #ffffff;
    box-shadow: 0 6px 12px -4px rgba(34, 60, 20, 0.35);
}

.sv-order-thumbs img + img {
    margin-left: -14px;
}

.sv-order-row > strong {
    color: #222222;
    font-family: "Kanit", sans-serif;
    font-size: 17px;
    font-weight: 600;
}

/* ---------- Order detail ---------- */

.sv-order-item img {
    box-shadow: 0 8px 16px -6px rgba(34, 60, 20, 0.35);
}

.sv-progress div i {
    width: 36px;
    height: 36px;
    font-size: 13px;
    transition: transform 0.3s ease;
}

.sv-progress::before {
    top: 17px;
}

.sv-progress div.done i {
    background-image: var(--sv-grad);
    box-shadow: 0 0 0 5px rgba(66, 149, 17, 0.14);
}

.sv-summary-row.total {
    border-top-style: dashed;
}

/* ---------- Addresses ---------- */

.sv-address-card {
    padding: 22px;
    border-color: #edf2ea;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--sv-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sv-address-card:hover {
    transform: translateY(-3px);
}

.sv-address-card > strong {
    color: #222222;
    font-size: 15px;
}

.sv-address-card.default {
    border-color: rgba(66, 149, 17, 0.35);
    background:
        var(--sv-dots) 0 0 / 18px 18px,
        linear-gradient(160deg, #f8fcf6 0%, #ecf6e6 100%);
}

.sv-address-card .sv-actions {
    padding-top: 12px;
    border-top: 1px dashed #e3ebdf;
}

/* ---------- Account: mobile ---------- */

@media (max-width: 991px) {
    .sv-account-side {
        padding-bottom: 10px;
    }

    .sv-account-user {
        padding: 20px 18px;
    }

    .sv-account-nav {
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding: 0 12px 4px;
        scrollbar-width: none;
    }

    .sv-account-nav::-webkit-scrollbar {
        display: none;
    }

    .sv-account-nav a,
    .sv-account-nav button {
        flex-shrink: 0;
        margin-bottom: 0;
        padding: 6px 14px 6px 6px;
        border: 1px solid #edf2ea;
        border-radius: 50px;
        white-space: nowrap;
    }

    .sv-account-nav a.active {
        border-color: transparent;
    }

    .sv-account-nav a i,
    .sv-account-nav button i {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-size: 12px;
    }

    .sv-account-nav form {
        flex-shrink: 0;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .sv-account-head {
        margin-top: 6px;
    }
}

@media (max-width: 575px) {
    .sv-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sv-stat {
        padding: 16px;
        border-radius: 18px;
    }

    .sv-stat i {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 15px;
    }

    .sv-stat strong {
        font-size: 21px;
    }

    .sv-account .sv-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    .sv-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        border-radius: 50px;
        scrollbar-width: none;
    }

    .sv-tabs a {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .sv-order-row {
        margin: 0 -8px;
        padding: 14px 8px;
    }
}


/* ==========================================================
   Order thank-you page
   ========================================================== */

.sv-thanks-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 40px 36px;
    border: 1px solid #edf2ea;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(66, 149, 17, 0.12) 0%, transparent 55%),
        #ffffff;
    box-shadow: 0 30px 70px -36px rgba(34, 60, 20, 0.35);
    text-align: center;
}

.sv-thanks-hero h1 {
    margin: 0 0 10px;
    color: #222222;
    font-family: "Kanit", sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.sv-thanks-hero > p {
    max-width: 520px;
    margin: 0 auto 28px;
    color: #666666;
    font-size: 15px;
    line-height: 1.8;
}

/* Check mark with pulsing rings */
.sv-thanks-check {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--sv-grad);
    box-shadow: 0 18px 36px -12px rgba(66, 149, 17, 0.7);
    color: #ffffff;
    font-size: 40px;
    animation: sv-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.sv-thanks-check::before,
.sv-thanks-check::after {
    position: absolute;
    inset: -12px;
    border: 2px solid rgba(66, 149, 17, 0.25);
    border-radius: 50%;
    content: "";
    animation: sv-ring 2.4s ease-out infinite;
}

.sv-thanks-check::after {
    animation-delay: 1.2s;
}

.sv-thanks-check i {
    animation: sv-pop 0.5s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

@keyframes sv-ring {
    from { opacity: 1; transform: scale(0.85); }
    to { opacity: 0; transform: scale(1.45); }
}

/* Confetti */
.sv-thanks-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sv-thanks-confetti i {
    position: absolute;
    top: -14px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: #429511;
    opacity: 0;
    animation: sv-confetti 3.2s ease-in forwards;
}

.sv-thanks-confetti i:nth-child(3n) { background: #8fd45b; width: 6px; height: 6px; border-radius: 50%; }
.sv-thanks-confetti i:nth-child(3n + 1) { background: #f2c94c; }
.sv-thanks-confetti i:nth-child(1) { left: 6%; animation-delay: 0.1s; }
.sv-thanks-confetti i:nth-child(2) { left: 14%; animation-delay: 0.5s; }
.sv-thanks-confetti i:nth-child(3) { left: 22%; animation-delay: 0.2s; }
.sv-thanks-confetti i:nth-child(4) { left: 31%; animation-delay: 0.7s; }
.sv-thanks-confetti i:nth-child(5) { left: 40%; animation-delay: 0.35s; }
.sv-thanks-confetti i:nth-child(6) { left: 52%; animation-delay: 0.6s; }
.sv-thanks-confetti i:nth-child(7) { left: 61%; animation-delay: 0.15s; }
.sv-thanks-confetti i:nth-child(8) { left: 70%; animation-delay: 0.45s; }
.sv-thanks-confetti i:nth-child(9) { left: 78%; animation-delay: 0.25s; }
.sv-thanks-confetti i:nth-child(10) { left: 86%; animation-delay: 0.65s; }
.sv-thanks-confetti i:nth-child(11) { left: 93%; animation-delay: 0.3s; }
.sv-thanks-confetti i:nth-child(12) { left: 46%; animation-delay: 0.8s; }

@keyframes sv-confetti {
    0% { opacity: 1; transform: translateY(0) rotate(0); }
    100% { opacity: 0; transform: translateY(380px) rotate(540deg); }
}

/* Order facts */
.sv-thanks-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e6efe1;
    border-radius: 18px;
    background: #f8fcf6;
    text-align: left;
}

.sv-thanks-meta > div {
    min-width: 0;
    padding: 16px 20px;
}

.sv-thanks-meta > div + div {
    border-left: 1px dashed #d9e6d2;
}

.sv-thanks-meta span {
    display: block;
    margin-bottom: 4px;
    color: #8a9585;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sv-thanks-meta strong {
    display: block;
    overflow: hidden;
    color: #222222;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sv-thanks-meta small {
    display: block;
    color: #429511;
    font-size: 12px;
    font-weight: 500;
}

.sv-thanks-meta .sv-thanks-total {
    color: #429511;
    font-family: "Kanit", sans-serif;
    font-size: 22px;
}

/* What happens next */
.sv-thanks-steps {
    position: relative;
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.sv-thanks-steps::before {
    position: absolute;
    top: 19px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #d5e4cd 0 6px, transparent 6px 12px);
    content: "";
}

.sv-thanks-steps li {
    position: relative;
    flex: 1;
    color: #9aa596;
    font-size: 12px;
    font-weight: 500;
}

.sv-thanks-steps li i {
    display: grid;
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    place-items: center;
    border: 2px solid #e1ebdc;
    border-radius: 50%;
    background: #ffffff;
    font-size: 14px;
}

.sv-thanks-steps li.done {
    color: #429511;
}

.sv-thanks-steps li.done i {
    border-color: transparent;
    background: var(--sv-grad);
    box-shadow: 0 0 0 5px rgba(66, 149, 17, 0.14);
    color: #ffffff;
}

.sv-thanks-cancelled {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 10px 18px;
    border-radius: 50px;
    background: #fdeaea;
    color: #b03232;
    font-size: 14px;
}

.sv-thanks-hero.is-cancelled .sv-thanks-check {
    background: linear-gradient(135deg, #e05a4f, #b03232);
    box-shadow: 0 18px 36px -12px rgba(176, 50, 50, 0.6);
}

.sv-thanks-hero.is-cancelled .sv-thanks-check::before,
.sv-thanks-hero.is-cancelled .sv-thanks-check::after,
.sv-thanks-hero.is-cancelled .sv-thanks-confetti {
    display: none;
}

/* Cards below */
.sv-thanks-card {
    padding: 28px;
}

.sv-thanks-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sv-thanks-card-head h2 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: #222222;
    font-size: 19px;
    font-weight: 600;
}

.sv-thanks-card-head h2::before {
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: #429511;
    content: "";
}

.sv-thanks-card-head > span {
    padding: 4px 12px;
    border-radius: 50px;
    background: #ffffff;
    color: #429511;
    font-size: 12px;
    font-weight: 500;
}

.sv-thanks-address {
    margin-bottom: 16px;
    font-size: 14px;
}

.sv-thanks-address > strong {
    display: block;
    margin-bottom: 4px;
    color: #222222;
    font-size: 15px;
}

.sv-thanks-address p {
    margin: 0 0 14px;
    color: #666666;
    line-height: 1.8;
}

.sv-thanks-pin {
    display: grid !important;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    place-items: center;
    background: #f2f8ef !important;
    font-size: 15px !important;
}

.sv-thanks-phone {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 14px;
    border-radius: 50px;
    background: #f2f8ef;
    color: #222222;
    font-size: 13px;
}

.sv-thanks-phone i {
    color: #429511;
    font-size: 11px;
}

.sv-thanks-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sv-thanks-actions .sv-btn {
    padding-top: 13px;
    padding-bottom: 13px;
}

.sv-thanks-help {
    margin: 4px 0 0;
    color: #888888;
    font-size: 13px;
    text-align: center;
}

.sv-thanks-help a {
    color: #429511;
    font-weight: 500;
}

@media (max-width: 767px) {
    .sv-thanks-hero {
        padding: 36px 18px 28px;
        border-radius: 22px;
    }

    .sv-thanks-check {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .sv-thanks-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-thanks-meta > div {
        padding: 14px 16px;
    }

    .sv-thanks-meta > div:nth-child(3) {
        border-left: 0;
    }

    .sv-thanks-meta > div:nth-child(n + 3) {
        border-top: 1px dashed #d9e6d2;
    }

    .sv-thanks-meta strong {
        font-size: 14px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .sv-thanks-steps li {
        font-size: 11px;
    }

    .sv-thanks-card {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-thanks-check,
    .sv-thanks-check i,
    .sv-thanks-check::before,
    .sv-thanks-check::after {
        animation: none;
    }

    .sv-thanks-confetti {
        display: none;
    }
}


/* ==========================================================
   Out-of-stock books (not linked to their detail page)
   ========================================================== */

.book-product-card.is-out-of-stock:hover {
    border-color: #edf2ea;
    box-shadow: 0 4px 14px rgba(34, 60, 20, 0.04);
    transform: none;
}

.book-product-card.is-out-of-stock .book-product-image img {
    filter: none;
}

.book-product-card.is-out-of-stock:hover .book-product-image img {
    transform: none;
}

.book-product-card.is-out-of-stock h3 {
    color: #777777;
}

.silent-featured-btn.is-out-of-stock {
    background: #e9ece7;
    box-shadow: none;
    color: #8a9585;
    cursor: default;
}

.silent-mini-book.is-out-of-stock {
    cursor: default;
}

.silent-mini-book.is-out-of-stock:hover {
    background: transparent;
}

.silent-mini-book.is-out-of-stock:hover .silent-mini-book-image img {
    transform: none;
}

.silent-mini-book-oos {
    display: block;
    margin-top: 2px;
    color: #b03232;
    font-size: 11px;
    font-weight: 500;
}

.sv-suggest a.is-out-of-stock {
    cursor: default;
    opacity: 0.6;
}

.sv-suggest a.is-out-of-stock:hover {
    background: transparent;
}


/* ==========================================================
   Awards & certificates (home + about)
   ========================================================== */

.sv-awards-section {
    position: relative;
    padding: 70px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(66, 149, 17, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(242, 201, 76, 0.12) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f5faf2 100%);
}

.sv-awards-heading {
    max-width: 620px;
    margin: 0 auto 44px;
    text-align: center;
}

.sv-awards-heading span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #429511;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.sv-awards-heading span::before,
.sv-awards-heading span::after {
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: #429511;
    content: "";
}

.sv-awards-heading h2 {
    margin: 0 0 12px;
    color: #222222;
    font-family: "Kanit", sans-serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 600;
    line-height: 1.25;
}

.sv-awards-heading p {
    margin: 0;
    color: #666666;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.sv-award-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #edf2ea;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--sv-shadow-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sv-award-card:hover {
    box-shadow: 0 30px 60px -28px rgba(34, 60, 20, 0.38);
    transform: translateY(-6px);
}

/* Certificate shown like a framed print */
.sv-award-frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 30px 30px 26px;
    border: 0;
    background:
        var(--sv-dots) 0 0 / 18px 18px,
        linear-gradient(160deg, #f5fbf2 0%, #e3f1da 100%);
    cursor: zoom-in;
}

.sv-award-frame img {
    display: block;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 591 / 844;
    margin: 0 auto;
    object-fit: cover;
    border: 8px solid #ffffff;
    border-radius: 4px;
    box-shadow:
        0 1px 0 #e6e6e6,
        0 22px 40px -16px rgba(34, 60, 20, 0.45);
    transition: transform 0.4s ease;
}

.sv-award-card:hover .sv-award-frame img {
    transform: scale(1.02) rotate(-0.6deg);
}

.sv-award-zoom {
    position: absolute;
    left: 50%;
    bottom: 40px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 16px;
    border-radius: 50px;
    background: rgba(34, 34, 34, 0.82);
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sv-award-card:hover .sv-award-zoom,
.sv-award-frame:focus-visible .sv-award-zoom {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sv-award-info {
    display: flex;
    flex: 1;
    gap: 14px;
    padding: 22px 24px 24px;
    font-family: "Poppins", sans-serif;
}

.sv-award-medal {
    display: grid;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7d774 0%, #d9a521 100%);
    box-shadow: 0 10px 20px -8px rgba(217, 165, 33, 0.7);
    color: #ffffff;
    font-size: 18px;
}

.sv-award-info h3 {
    margin: 0 0 4px;
    color: #222222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.sv-award-info strong {
    display: block;
    margin-bottom: 8px;
    color: #429511;
    font-size: 13px;
    font-weight: 500;
}

.sv-award-info p {
    margin: 0 0 10px;
    color: #666666;
    font-size: 13px;
    line-height: 1.7;
}

.sv-award-info small {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 5px 12px;
    border-radius: 50px;
    background: #f2f8ef;
    color: #555555;
    font-size: 12px;
}

.sv-award-info small i {
    color: #429511;
}

/* Lightbox */
.sv-lightbox {
    max-width: min(92vw, 640px);
    max-height: 92vh;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 6px;
    background: transparent;
}

.sv-lightbox::backdrop {
    background: rgba(15, 25, 10, 0.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.sv-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    border: 8px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.sv-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #222222;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 575px) {
    .sv-awards-section {
        padding: 50px 0 60px;
    }

    .sv-awards-heading {
        margin-bottom: 30px;
    }

    .sv-award-frame {
        padding: 22px 22px 18px;
    }

    .sv-award-frame img {
        max-width: 240px;
    }

    .sv-award-zoom {
        display: none;
    }

    .sv-award-info {
        padding: 18px;
    }

    .sv-lightbox-close {
        top: 8px;
        right: 8px;
    }
}


/* ==========================================================
   In the News: press cuttings & event photos (about page)
   ========================================================== */

.sv-media-section {
    padding: 70px 0 90px;
    background: #ffffff;
}

.sv-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* Two items: a narrower column for the portrait press cutting */
.sv-media-grid.sv-media-count-2 {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.sv-media-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid #edf2ea;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--sv-shadow-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sv-media-card:hover {
    box-shadow: 0 30px 60px -28px rgba(34, 60, 20, 0.38);
    transform: translateY(-6px);
}

.sv-media-frame {
    position: relative;
    display: block;
    flex: 1;
    min-height: 300px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #f2f8ef;
    cursor: zoom-in;
}

.sv-media-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.sv-media-card:hover .sv-media-frame img {
    transform: scale(1.04);
}

.sv-media-frame::after {
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(15, 25, 10, 0.35));
    content: "";
    pointer-events: none;
}

.sv-media-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 7px 14px;
    border-radius: 50px;
    background: var(--sv-grad);
    box-shadow: 0 8px 18px -6px rgba(66, 149, 17, 0.6);
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.sv-media-zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #222222;
    font-size: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.sv-media-card:hover .sv-media-zoom {
    background: #429511;
    color: #ffffff;
    transform: scale(1.08);
}

.sv-media-info {
    padding: 22px 26px 26px;
    font-family: "Poppins", sans-serif;
}

.sv-media-info small {
    display: block;
    margin-bottom: 6px;
    color: #429511;
    font-size: 12px;
    font-weight: 500;
}

.sv-media-info h3 {
    margin: 0 0 8px;
    color: #222222;
    font-family: "Kanit", sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.sv-media-info p {
    margin: 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.75;
}

@media (max-width: 991px) {
    .sv-media-grid.sv-media-count-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .sv-media-frame {
        min-height: 0;
        aspect-ratio: 4 / 3;
        flex: none;
    }
}

@media (max-width: 575px) {
    .sv-media-section {
        padding: 50px 0 60px;
    }

    .sv-media-grid {
        gap: 20px;
    }

    .sv-media-info {
        padding: 18px;
    }

    .sv-media-info h3 {
        font-size: 18px;
    }
}


/* ==========================================================
   Gallery: photos & YouTube videos (home section + /gallery)
   ========================================================== */

.sv-gallery-section {
    padding: 70px 0 90px;
    background: #ffffff;
}

.sv-gallery-page {
    padding-top: 60px;
    background:
        var(--sv-dots) 0 0 / 22px 22px,
        linear-gradient(180deg, #f5faf2 0%, #ffffff 320px);
}

.sv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Home: first item large with two beside it, then a row of three (fills evenly with 6 items) */
.sv-gallery-mosaic {
    grid-auto-rows: clamp(150px, 19vw, 250px);
}

.sv-gallery-mosaic .is-feature {
    grid-column: span 2;
    grid-row: span 2;
}

.sv-gallery-tile {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #f2f8ef;
    box-shadow: var(--sv-shadow-card);
    aspect-ratio: 4 / 3;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sv-gallery-mosaic .sv-gallery-tile {
    aspect-ratio: auto;
    height: 100%;
}

.sv-gallery-tile:hover {
    box-shadow: 0 30px 60px -28px rgba(34, 60, 20, 0.38);
    transform: translateY(-5px);
}

.sv-gallery-trigger {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.sv-gallery-tile.is-video .sv-gallery-trigger {
    cursor: pointer;
}

.sv-gallery-trigger:focus-visible {
    outline: 3px solid #429511;
    outline-offset: -3px;
    border-radius: 20px;
}

.sv-gallery-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sv-gallery-tile:hover .sv-gallery-trigger img {
    transform: scale(1.05);
}

/* YouTube's 4:3 thumbnails carry black bars above and below the 16:9 frame; crop them off. */
.sv-gallery-trigger img.is-yt-thumb {
    transform: scale(1.34);
}

.sv-gallery-tile:hover .sv-gallery-trigger img.is-yt-thumb {
    transform: scale(1.4);
}

.sv-gallery-trigger::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 25, 10, 0.7));
    content: "";
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sv-gallery-tile:hover .sv-gallery-trigger::after {
    opacity: 1;
}

.sv-gallery-caption {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 16px 18px;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    text-align: left;
}

.sv-gallery-caption small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.85;
}

.sv-gallery-caption span {
    display: -webkit-box;
    overflow: hidden;
    font-family: "Kanit", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sv-gallery-mosaic .is-feature .sv-gallery-caption {
    padding: 24px 26px;
}

.sv-gallery-mosaic .is-feature .sv-gallery-caption span {
    font-size: 22px;
}

.sv-gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25), 0 12px 30px rgba(0, 0, 0, 0.3);
    color: #429511;
    font-size: 20px;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sv-gallery-mosaic .is-feature .sv-gallery-play {
    width: 78px;
    height: 78px;
    font-size: 26px;
}

.sv-gallery-tile:hover .sv-gallery-play {
    background: #429511;
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.08);
}

.sv-gallery-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #222222;
    font-size: 13px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sv-gallery-tile:hover .sv-gallery-zoom,
.sv-gallery-trigger:focus-visible .sv-gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

.sv-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -14px 0 36px;
}

.sv-gallery-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border: 1px solid #dfe9d9;
    border-radius: 50px;
    background: #ffffff;
    color: #444444;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s ease;
}

.sv-gallery-tabs a:hover {
    border-color: #429511;
    color: #429511;
}

.sv-gallery-tabs a.active {
    border-color: transparent;
    background: var(--sv-grad);
    box-shadow: var(--sv-shadow-btn);
    color: #ffffff;
}

.sv-gallery-empty {
    margin: 0;
    padding: 50px 0;
    color: #777777;
    font-family: "Poppins", sans-serif;
    text-align: center;
}

/* Lightbox: video + caption */
.sv-lightbox.is-video {
    width: min(92vw, 960px);
    max-width: none;
}

.sv-lightbox-video {
    overflow: hidden;
    border-radius: 6px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
}

.sv-lightbox-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.sv-lightbox img[hidden],
.sv-lightbox-video[hidden],
.sv-lightbox-caption[hidden] {
    display: none;
}

.sv-lightbox-caption {
    margin: 14px 0 0;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.sv-lightbox:has(.sv-lightbox-caption:not([hidden])) img {
    max-height: calc(92vh - 60px);
}

@media (max-width: 991px) {
    .sv-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-gallery-mosaic {
        grid-auto-rows: clamp(140px, 30vw, 220px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .sv-gallery-section {
        padding: 50px 0 60px;
    }

    .sv-gallery-grid {
        gap: 12px;
    }

    .sv-gallery-tile,
    .sv-gallery-trigger:focus-visible {
        border-radius: 14px;
    }

    .sv-gallery-caption {
        padding: 10px 12px;
    }

    .sv-gallery-caption small {
        display: none;
    }

    .sv-gallery-caption span {
        font-size: 13px;
    }

    .sv-gallery-mosaic .is-feature .sv-gallery-caption span {
        font-size: 17px;
    }

    .sv-gallery-play {
        width: 46px;
        height: 46px;
        font-size: 15px;
    }

    .sv-gallery-zoom {
        display: none;
    }
}
