/**
 * Store & coupon UI: accent colors come from the active theme
 * (Aspen: global_link_color) via --wd-* CSS variables.
 */
:root {
    --wd-accent: #019a04;
    --wd-accent-hover: #017a03;
    --wd-accent-dark: #016d03;
    --wd-accent-text: #ffffff;
    --wd-text: #404040;
    --wd-surface: #f7f4fb;
}

/* Use Aspen #site-content + .row so store pages share the theme content width. */
body.single-wd_store.header-style-one #site-content,
body.single-wd_store.header-style-five #site-content,
body.single-wd_store.header-style-six #site-content,
body.post-type-archive-wd_store.header-style-one #site-content,
body.post-type-archive-wd_store.header-style-five #site-content,
body.post-type-archive-wd_store.header-style-six #site-content {
    padding: 160px 0 40px 0;
}

body.single-wd_store.header-style-two #site-content,
body.post-type-archive-wd_store.header-style-two #site-content {
    padding: 140px 0 60px 0;
}

body.single-wd_store.header-style-three #site-content,
body.post-type-archive-wd_store.header-style-three #site-content {
    padding: 220px 0 60px 0;
}

body.single-wd_store.header-style-four #site-content,
body.post-type-archive-wd_store.header-style-four #site-content {
    padding: 60px 0;
}

body.single-wd_store.header-style-seven #site-content,
body.single-wd_store.header-style-eight #site-content,
body.post-type-archive-wd_store.header-style-seven #site-content,
body.post-type-archive-wd_store.header-style-eight #site-content {
    padding: 310px 0 60px 0;
}

body.single-wd_store #site-content>.row,
body.post-type-archive-wd_store #site-content>.row {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px 40px;
    box-sizing: border-box;
}

body.single-wd_store .td-main-content-wrap,
body.single-wd_store .td-container-wrap,
body.single-wd_store .td-container,
body.post-type-archive-wd_store .td-main-content-wrap,
body.post-type-archive-wd_store .td-container-wrap,
body.post-type-archive-wd_store .td-container,
body.post-type-archive-wd_store .wd-store-archive {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.wd-store-sidebar,
.wd-store-main {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wd-store-breadcrumb {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.wd-store-breadcrumb__current {
    color: inherit;
}

/* Archive — header kiểu category; phần nội dung không dùng td-block-row (tránh padding kép làm ô co) */
.wd-store-archive.td-category-header .td-crumb-container {
    margin-bottom: 0;
}

.wd-store-archive.td-category-header .entry-title.td-page-title {
    margin-top: 0.35em;
}

/* Grid full chiều ngang cột chính — không float/td-block-span */
.wd-store-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wd-store-archive-grid .wd-store-archive-card {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1018px) {
    .wd-store-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 20px;
    }
}

@media (max-width: 767px) {
    .wd-store-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Archive — cột có khoảng cách ngang giữa các thẻ */
.td-ss-main-content .td-block-row .wd-store-archive-card-col {
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

/* Archive: reset margin theme trên module ảnh để khối logo sạch */
.td-ss-main-content .wd-store-archive-card .td-module-image {
    margin-bottom: 0 !important;
}

.td-ss-main-content .wd-store-archive-card .td-module-thumb {
    margin-bottom: 0 !important;
}

/* Thẻ store — layout dọc đồng đều (ghi đè padding-bottom 35px của .td_module_wrap theme) */
.td-ss-main-content .wd-store-archive-card.td_module_wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 0 22px;
    padding-bottom: 0 !important;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
}

.td-ss-main-content .wd-store-archive-card.td_module_wrap:hover {
    border-color: rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.td-ss-main-content .wd-store-archive-card.td_module_wrap:hover .wd-store-archive-card__logo {
    transform: scale(1.02);
}

.wd-store-archive-card__thumb {
    position: relative;
    background: #f4f6f9;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Sọc nhẹ — tránh nền phẳng đơn điệu */
.wd-store-archive-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.45;
    pointer-events: none;
}

.wd-store-archive-card__logo-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 120px;
    max-height: 160px;
    padding: 20px 18px;
    box-sizing: border-box;
    transition: background-color 0.25s ease;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__logo-link {
    background-color: rgba(255, 255, 255, 0.65);
}

/* Ghi đè .entry-thumb { width:100% } của theme (td-composer) để logo không bị kéo full ô rồi trông lệch */
.td-ss-main-content .wd-store-archive-card .td-module-thumb .entry-thumb.wd-store-archive-card__logo {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    max-width: 100%;
    max-height: 96px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wd-store-archive-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 16px;
    text-align: center;
    gap: 6px;
}

.wd-store-archive-card__category {
    margin: 0;
    line-height: 1.2;
    max-width: 100%;
}

.wd-store-archive-card__category a {
    display: inline-block;
    max-width: 100%;
    padding: 4px 11px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #475569;
    text-decoration: none;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wd-store-archive-card__category a:hover,
.wd-store-archive-card__category a:focus-visible {
    background: #e2e8f0;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.55);
}

.wd-store-archive-card__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0;
}

.td-ss-main-content .wd-store-archive-card .wd-store-stars--archive {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

.wd-store-archive-card__rating-text {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.wd-store-archive-card__title {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
}

.wd-store-archive-card__title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__title a {
    color: #1e3a5f;
}

.wd-store-archive-card__title a:hover,
.wd-store-archive-card__title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wd-store-archive-card__excerpt.td-excerpt {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dòng CTA — nhỏ, rõ, không tranh với tiêu đề */
.wd-store-archive-card__cta {
    margin-top: auto;
    padding-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wd-store-archive-card__cta::after {
    content: " →";
    font-weight: 400;
    opacity: 0.75;
    transition: transform 0.2s ease;
    display: inline-block;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__cta {
    color: #0f172a;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__cta::after {
    transform: translateX(3px);
}

.wd-store-archive-card__cta:hover,
.wd-store-archive-card__cta:focus-visible {
    color: #0f172a;
    outline: none;
}

.wd-store-archive-card__cta:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15, 23, 42, 0.35);
    border-radius: 4px;
}

@media (max-width: 767px) {
    .td-ss-main-content .wd-store-archive-card__logo-link {
        min-height: 112px;
        aspect-ratio: auto;
        max-height: none;
    }

    .td-ss-main-content .wd-store-archive-card__body {
        padding: 14px 14px 14px;
    }
}

/*
 * Single store — desktop: 2 cột (sidebar = card + Other stores xếp dọc, sát nhau; main bên phải).
 * Mobile: ẩn Other stores trong sidebar; hiện bản copy sau main (flex order).
 */
@media (min-width: 769px) {
    .wd-store-single-row > .wd-store-layout__other {
        display: none !important;
    }

    .wd-store-single-row {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto;
        align-items: start;
        column-gap: 20px;
        width: 100%;
    }

    .wd-store-single-row > .wd-store-layout__sidebar,
    .wd-store-single-row > .wd-store-layout__main {
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-height: 0;
        box-sizing: border-box;
        padding: 0 !important;
        margin: 0 !important;
    }

    .wd-store-single-row > .wd-store-layout__sidebar {
        grid-column: 1 / span 3;
        grid-row: 1;
    }

    .wd-store-single-row > .wd-store-layout__main {
        grid-column: 4 / span 9;
        grid-row: 1;
    }
}

/* Tránh nội dung store (đặc biệt Other stores) dính sát footer theme */
.wd-store-single-row {
    margin-bottom: 3rem;
    padding-bottom: 0.75rem;
}

.wd-store-single-row:has(+ .wd-store-related-articles) {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

.wd-store-other-stores-wrap {
    padding: 0;
}

/* Sidebar store */
.wd-store-sidebar,
.wd-store-main,
.wd-store-sidebar *,
.wd-store-main * {
    font-family: Lato, BlinkMacSystemFont, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif !important;
}

.wd-store-sidebar {
    padding: 0;
    color: #404040;
}

.wd-store-sidebar .wd-store-card {
    background: #fff;
    border: 0;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.075);
    padding: 15px 16px 8px;
    margin: 0 0 10px;
    font-size: 1rem;
    text-align: center;
}

.wd-store-card-logo {
    text-align: center;
    margin: 0 0 12px;
}

.wd-store-card-logo img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wd-store-card-title {
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 8px;
    line-height: 1.35;
    color: var(--wd-accent);
}

.wd-store-card-rating {
    margin: 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.wd-store-card-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.wd-store-stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.wd-store-stars__bg {
    color: #d3d3d3;
}

.wd-store-stars__fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #f39c12;
    white-space: nowrap;
}

.wd-store-card-rating-text {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #8a8a8a;
    line-height: 1.4;
}

.wd-store-card-rating-value,
.wd-store-card-rating-count,
.wd-store-card-rating-sep,
.wd-store-card-rating-votes {
    color: #8a8a8a;
}

.wd-store-rate-btn {
    display: block;
    border: 0;
    background: #fef5e2;
    color: #faaf19;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    width: 72px;
    height: 1.5rem;
    line-height: 1.2rem;
    border-radius: 3.5px;
    margin: 0.5rem auto 1rem;
    box-shadow: none;
}

.wd-store-rate-btn:hover {
    background: #fde9c2;
    color: #faaf19;
}

.wd-store-alert-btn {
    display: block;
    box-sizing: border-box;
    width: 200px;
    max-width: 100%;
    margin: 0 auto 1em;
    min-height: 38px;
    padding: 5px 10px 5px 24px;
    border: 1px solid var(--wd-accent);
    border-radius: 3.5px;
    background: #fff;
    color: var(--wd-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.wd-store-alert-btn:hover,
.wd-store-alert-btn:focus {
    background: var(--wd-accent);
    color: #fff;
    text-decoration: none;
}

.wd-store-stats {
    background: #fff;
    border: 0;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.075);
    padding: 15px;
    margin: 0 0 10px;
}

.wd-store-stats__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #404040;
    text-align: left;
}

.wd-store-stats__table {
    width: 100%;
    border-collapse: collapse;
}

.wd-store-stats__table td {
    padding: 0;
    height: 30px;
    border-bottom: 0;
    font-size: 14px;
    color: #404040;
    vertical-align: middle;
}

.wd-store-stats__table tr:last-child td {
    border-bottom: 0;
}

.wd-store-stats__table td:last-child {
    text-align: right;
    font-weight: 400;
    color: #404040;
}

/* Other stores grid */
.wd-other-stores {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e3e3e3;
    text-align: left;
}

.wd-other-stores__title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    padding: 16px 16px 12px;
    line-height: 1.35;
}

.wd-other-stores__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 16px 16px;
    background: #fff;
}

.wd-other-stores__item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.wd-other-stores__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wd-other-stores__item:hover {
    background: #fff;
}

/* Coupon list */
.wd-store-main {
    padding: 0;
    color: #404040;
}

/* Store page title — match foxyshopping h3 look */
.wd-store-header .td-page-title,
.wd-store-header .entry-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 0.5rem !important;
    color: #404040 !important;
    font-family: Lato, BlinkMacSystemFont, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif !important;
}

.desktop-store-header {
    margin: 0 0 8px;
    padding-bottom: 0.5rem;
}

.wd-store-intro {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #404040;
}

/* Mặc định ẩn bản mobile (desktop-first) */
.mobile-store-header {
    display: none;
}

@media (max-width: 768px) {
    .desktop-store-header {
        display: none !important;
    }

    .mobile-store-header {
        display: block !important;
        margin: 0 0 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-store-header {
        display: none !important;
    }

    .desktop-store-header {
        display: block;
    }
}

.wd-coupon-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.single-wd_store button.wd-coupon-tab,
button.wd-coupon-tab,
.wd-coupon-tab {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0 10px 10px 0;
    padding: 0 16px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--wd-accent) 28%, #ffffff) !important;
    border-radius: 5px;
    outline: none !important;
    background: var(--wd-surface) !important;
    background-color: var(--wd-surface) !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 38px;
    color: var(--wd-accent) !important;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

body.single-wd_store button.wd-coupon-tab:hover,
button.wd-coupon-tab:hover,
.wd-coupon-tab:hover {
    color: var(--wd-accent) !important;
    background: color-mix(in srgb, var(--wd-accent) 12%, #ffffff) !important;
    background-color: color-mix(in srgb, var(--wd-accent) 12%, #ffffff) !important;
    border-color: color-mix(in srgb, var(--wd-accent) 40%, #ffffff) !important;
    box-shadow: none !important;
}

body.single-wd_store button.wd-coupon-tab:focus,
body.single-wd_store button.wd-coupon-tab:focus-visible,
.wd-coupon-tab:focus,
.wd-coupon-tab:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

body.single-wd_store button.wd-coupon-tab.is-active,
body.single-wd_store button.wd-coupon-tab.is-active:hover,
button.wd-coupon-tab.is-active,
button.wd-coupon-tab.is-active:hover,
.wd-coupon-tab.is-active,
.wd-coupon-tab.is-active:hover {
    color: #fff !important;
    background: var(--wd-accent) !important;
    background-color: var(--wd-accent) !important;
    border-color: var(--wd-accent) !important;
    box-shadow: none !important;
    font-size: 16px;
}

.wd-coupon-tab__count {
    font-weight: 700;
    opacity: 1;
    font-size: 1em;
    margin-left: 0;
}

.wd-coupon-tabpanel {
    min-height: 0;
}

.wd-coupon-filter-empty {
    margin: 0 0 12px;
    padding: 14px 16px;
    background: var(--wd-surface);
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.5;
}

.wd-store-about-text {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 0;
    padding: 16px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin: 0 0 20px;
}

.wd-store-about-text p {
    margin: 0 0 0.75em;
    color: #555;
}

.wd-store-about-text p:last-child {
    margin-bottom: 0;
}

.wd-store-about-text strong {
    font-weight: 700;
    color: #404040;
}


/* Inherit Aspen page background. Do not paint body/header gray. */
body.single-wd_store,
body.single-wd_store #site-wrapper,
body.single-wd_store #site-content,
body.single-wd_store .td-main-content-wrap,
body.single-wd_store .td-container,
body.single-wd_store .td-pb-row,
body.single-wd_store .wd-store-single-row,
body.single-wd_store .td-ss-main-content,
body.single-wd_store .td-ss-main-sidebar {
    background: transparent;
}

.wd-store-stats__table,
.wd-store-stats__table td {
    border: 0 !important;
    background: transparent !important;
}

.wd-other-stores--in-sidebar,
.wd-other-stores--after-main {
    display: none !important;
}

.wd-coupon-row {
    position: relative;
    display: block;
    background: #fff;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.075);
    min-height: 130px;
    overflow: visible;
}

.wd-coupon-list {
    display: block;
    padding: 0;
}

.wd-coupon-row__inner {
    position: relative;
    display: block;
    min-height: 130px;
    padding: 0;
}

.wd-coupon-row.is-wd-tab-hidden {
    display: none !important;
}

.wd-coupon-offer-col {
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 90px;
    margin: 0;
    padding: 0 10px 0 0;
    border-right: 1px dashed #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.wd-coupon-offer-text {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--wd-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wd-coupon-row--no-offer .wd-coupon-offer-col {
    display: none;
}

.wd-coupon-body {
    margin-left: 103px;
    padding: 10px 235px 10px 10px;
    min-height: 130px;
    box-sizing: border-box;
    display: block;
    text-align: left;
    position: relative;
}

.wd-coupon-action {
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -23px;
    width: 180px;
    display: block;
}

.wd-coupon-row--no-offer .wd-coupon-body {
    margin-left: 0;
    padding-left: 16px;
}

.wd-coupon-type {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--wd-accent);
}

.wd-coupon-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    min-height: 48px;
    color: #404040;
    line-height: 26px;
    display: flex;
    align-items: center;
}

.wd-coupon-title a {
    color: #404040;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    margin: auto 0;
}

.wd-coupon-title a:hover {
    color: var(--wd-accent);
}

.wd-coupon-desc {
    margin: 0 0 0.5rem;
    color: #8a8a8a;
    line-height: 1.45;
    font-size: 14px;
}

.wd-coupon-desc p {
    margin: 0;
}

.wd-coupon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 40px;
    padding: 0;
    background: var(--wd-accent);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
}

.wd-coupon-btn:hover {
    background: var(--wd-accent-hover);
    color: #fff;
}

/* Get Code — peel follows theme accent (--wd-accent) */
.wd-getcode {
    position: relative;
    width: 180px;
    height: 40px;
}

.wd-getcode__code {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: block;
    border: 2px dashed var(--wd-accent);
    border-radius: 5px;
    padding-right: 5px;
    font-size: 18px;
    font-weight: 500;
    line-height: 36px;
    color: var(--wd-accent);
    text-align: right;
    overflow: hidden;
    background: transparent;
    box-sizing: border-box;
}

.wd-getcode__btn {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 12px;
    border: 0;
    border-radius: 5px;
    padding: 0;
    margin: 0;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--wd-accent-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: left 0.2s, right 0.2s;
    z-index: 2;
    overflow: hidden;
}

.wd-getcode__peel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.wd-getcode__peel-body {
    fill: var(--wd-accent);
}

.wd-getcode__peel-fold {
    fill: var(--wd-accent-dark);
}

.wd-getcode__label {
    position: relative;
    z-index: 1;
}

.wd-getcode__btn:hover,
.wd-getcode__btn:focus,
.wd-getcode__btn:focus-visible {
    left: -10px;
    right: 22px;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--wd-accent-text);
}

@media (max-width: 768px) {
    .wd-coupon-offer-col {
        position: static;
        width: auto;
        max-width: none;
        border-right: 0;
        border-bottom: 1px dashed #e7e7e7;
        padding: 10px 12px 8px;
        height: auto;
        top: auto;
        bottom: auto;
        left: auto;
    }

    .wd-coupon-row__inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .wd-coupon-body {
        margin-left: 0;
        padding: 10px 12px 56px;
        min-height: 0;
    }

    .wd-coupon-action {
        position: absolute;
        right: 12px;
        bottom: 12px;
        top: auto;
        margin-top: 0;
        width: 150px;
    }

    .wd-getcode,
    .wd-coupon-btn {
        width: 150px;
    }
}

/* Coupon modal — foxyshopping-style */
.wd-coupon-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.wd-coupon-modal.is-open {
    display: flex;
    animation: wd-modal-fade-in 0.2s ease-out;
}

@keyframes wd-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.wd-coupon-modal-open {
    overflow: hidden;
}

.wd-coupon-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.wd-coupon-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    font-family: inherit;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
    animation: wd-modal-slide-in 0.25s ease-out;
}

@keyframes wd-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

.wd-coupon-modal__dialog::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--wd-accent);
}

.wd-coupon-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding: 14px 16px;
    background: #fff;
}

.wd-coupon-modal__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.wd-coupon-modal__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #eee;
    background: var(--wd-surface);
}

.wd-coupon-modal__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wd-coupon-modal__title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
}

.wd-coupon-modal__close {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #999;
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.wd-coupon-modal__close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.wd-coupon-modal__content {
    padding: 18px 20px 12px;
    text-align: center;
}

.wd-coupon-modal__go {
    margin: 0 0 14px;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.45;
}

.wd-coupon-modal__go a {
    color: var(--wd-accent);
    font-weight: 700;
    text-decoration: none;
}

.wd-coupon-modal__go a:hover {
    text-decoration: underline;
}

.wd-coupon-modal__code-block {
    margin: 0 0 14px;
}

.wd-coupon-modal__no-code {
    margin: 0 0 14px;
}

.wd-coupon-modal__no-code-note {
    margin: 0 0 12px;
    padding: 14px 16px;
    background: var(--wd-surface);
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #555;
}

.wd-coupon-modal__code-wrap {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    border: 2px dashed var(--wd-accent);
    background: var(--wd-surface);
}

.wd-coupon-modal__code {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: 48px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 10px 14px;
    box-sizing: border-box;
}

.wd-coupon-modal__copy {
    border: 0;
    border-left: 2px solid var(--wd-accent);
    min-width: 120px;
    padding: 0 16px;
    background: var(--wd-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wd-coupon-modal__copy:hover {
    background: var(--wd-accent-hover);
}

.wd-coupon-modal__copy.is-copied {
    background: var(--wd-accent-dark);
}

.wd-coupon-modal__redeem {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    width: 100%;
    border: 0;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    background: var(--wd-accent);
    font-size: 0.9375rem;
    padding: 10px 16px;
    font-weight: 700;
}

.wd-coupon-modal__redeem:hover {
    background: var(--wd-accent-hover);
    color: #fff;
}

.wd-coupon-modal__more {
    display: inline-block;
    margin: 4px 0 8px;
    color: var(--wd-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.wd-coupon-modal__more:hover {
    text-decoration: underline;
}

.wd-coupon-modal__footer {
    padding: 12px 16px 16px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.wd-coupon-modal__site {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #888;
}

@media (min-width: 769px) {
    .wd-coupon-modal {
        padding: 24px;
    }

    .wd-coupon-modal__dialog {
        max-width: 520px;
    }

    .wd-coupon-modal__head {
        padding: 16px 20px;
    }

    .wd-coupon-modal__title {
        font-size: 1.25rem;
    }

    .wd-coupon-modal__content {
        padding: 20px 24px 14px;
    }

    .wd-coupon-modal__code {
        font-size: 1.375rem;
        min-height: 52px;
    }

    .wd-coupon-modal__copy {
        min-width: 130px;
        font-size: 0.9375rem;
    }
}

/* ABOUT sections — match foxyshopping people-also-ask */
.wd-store-about-sections {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

.wd-store-about-block {
    margin: 0 0 8px;
}

.wd-store-about-block:last-child {
    margin-bottom: 0;
}

.wd-store-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    padding: 1rem 0 0;
    line-height: 1.35;
    color: #232323;
    white-space: normal;
}

.wd-store-related-articles {
    display: none !important;
}

/* FAQ — bordered rows like foxyshopping table */
.wd-store-faq-table {
    width: 100%;
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.wd-store-faq-item {
    border: 1px solid #d3d3d3;
    border-bottom: none;
    padding: 16px;
    background: #fff;
    box-sizing: border-box;
}

.wd-store-faq-item:last-child {
    border-bottom: 1px solid #d3d3d3;
}

.wd-store-faq-block .wd-store-faq-question {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #555;
}

.wd-store-faq-block .wd-store-faq-label {
    font-weight: 700;
    color: #555;
}

.wd-store-faq-block .wd-store-faq-question-text {
    font-weight: 700;
    color: #555;
}

.wd-store-faq-block .wd-store-faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin: 10px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.wd-store-faq-block .wd-store-faq-answer .wd-store-faq-label {
    flex-shrink: 0;
    font-weight: 400;
    color: #555;
}

.wd-store-faq-block .wd-store-faq-answer-text {
    flex: 1;
    min-width: 0;
    font-weight: 400;
    color: #555;
}

.wd-store-faq-block .wd-store-faq-answer-text p {
    margin: 0 0 0.5em;
    color: #555;
}

.wd-store-faq-block .wd-store-faq-answer-text p:last-child {
    margin-bottom: 0;
}

/* Related articles nav (bottom of single store) */
.wd-store-related-articles {
    margin: 0 0 1.5rem;
    padding-top: 0.25rem;
}

.wd-store-related-articles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wd-store-related-articles__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 16px 14px;
    background: var(--wd-accent);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.wd-store-related-articles__item:hover,
.wd-store-related-articles__item:focus-visible {
    background: var(--wd-accent-hover);
    color: #fff;
}

.wd-store-related-articles__label {
    display: block;
    margin: 0 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
}

.wd-store-related-articles__title {
    display: block;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .wd-store-single-row {
        display: flex;
        flex-direction: column;
    }

    .wd-other-stores--in-sidebar {
        display: none !important;
    }

    .wd-store-single-row > .wd-store-layout__sidebar,
    .wd-store-single-row > .wd-store-layout__main,
    .wd-store-single-row > .wd-store-layout__other {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .wd-store-single-row > .wd-store-layout__sidebar {
        order: 1;
    }

    .wd-store-single-row > .wd-store-layout__main {
        order: 2;
    }

    .wd-store-single-row > .wd-store-layout__other {
        order: 3;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid #e8e8e8;
    }

    /* Khoảng cách giữa card store và main (coupon) */
    .wd-store-layout__sidebar + .wd-store-layout__main {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid #e8e8e8;
    }

    .wd-store-sidebar .wd-store-card {
        padding: 16px 12px;
        margin-bottom: 16px;
    }

    .wd-store-card-logo {
        margin-bottom: 10px;
    }

    .wd-store-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .wd-store-card-rating {
        margin-bottom: 8px;
    }

    .wd-store-stars {
        font-size: 16px;
    }

    .wd-store-card-category {
        margin-bottom: 8px;
    }

    .wd-store-card-website {
        margin-bottom: 10px;
    }

    .wd-other-stores__title {
        padding: 10px 8px 8px;
        font-size: 1rem;
    }

    .wd-other-stores__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 0 8px 10px;
    }

    .wd-other-stores__item {
        aspect-ratio: 1;
        padding: 2px;
    }

    .wd-other-stores__item img {
        max-width: 92%;
        max-height: 92%;
    }

    .wd-store-coupons__heading {
        font-size: 1.0625rem;
        margin-bottom: 8px;
    }

    .wd-coupon-tabs {
        margin-bottom: 12px;
    }

    .wd-coupon-tab {
        padding: 8px 6px 10px;
        font-size: 0.8125rem;
    }

    .wd-coupon-filter-empty {
        padding: 12px;
        font-size: 0.875rem;
    }

    .wd-coupon-list {
        gap: 10px;
    }

    /*
     * Mobile: inner — 2 cột offer | body+button; footer meta bar full width dưới cùng.
     */
    .wd-coupon-meta-bar {
        padding: 8px 12px;
    }

    .wd-coupon-meta-bar__text {
        font-size: 0.75rem;
    }

    .wd-coupon-verified {
        padding: 4px 10px;
        font-size: 0.6875rem;
    }

    .wd-coupon-verified__icon {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .wd-coupon-row {
        display: flex;
        flex-direction: column;
    }

    .wd-coupon-row__inner {
        display: grid;
        grid-template-columns: minmax(88px, 112px) 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 10px;
        align-items: start;
        padding: 14px 12px;
    }

    .wd-coupon-offer-col {
        grid-column: 1;
        grid-row: 1 / -1;
        flex: none;
        max-width: none;
        width: auto;
        padding: 0 12px 0 0;
        margin: 0 12px 0 0;
        border-right: 1px solid #eee;
        border-left: 0;
        justify-content: center;
        text-align: center;
        align-self: stretch;
    }

    .wd-coupon-body {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .wd-coupon-action {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin: 0;
        align-self: start;
    }

    .wd-coupon-row--no-offer .wd-coupon-body {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .wd-coupon-row--no-offer .wd-coupon-action {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .wd-coupon-offer-text {
        font-size: 22px;
    }

    .wd-coupon-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .wd-coupon-date {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .wd-coupon-btn {
        width: 130px;
        height: 38px;
        font-size: 13px;
    }


    .wd-store-about-sections {
        margin-top: 24px;
        padding-top: 20px;
    }

    .wd-store-about-block {
        margin-bottom: 20px;
    }

    .wd-store-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .wd-store-related-articles {
        margin-bottom: 1.25rem;
    }

    .wd-store-related-articles__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wd-store-related-articles__item {
        padding: 14px 12px;
    }

    .wd-store-related-articles__title {
        font-size: 1rem;
    }

    /* Modal mobile */
    .wd-coupon-modal {
        padding: 12px;
    }

    .wd-coupon-modal__dialog {
        max-height: calc(100vh - 24px);
    }

    .wd-coupon-modal__head {
        padding: 12px;
    }

    .wd-coupon-modal__logo {
        width: 40px;
        height: 40px;
    }

    .wd-coupon-modal__title {
        font-size: 1rem;
    }

    .wd-coupon-modal__content {
        padding: 14px 12px 10px;
    }

    .wd-coupon-modal__code {
        min-height: 44px;
        font-size: 1.0625rem;
        padding: 8px 10px;
    }

    .wd-coupon-modal__copy {
        min-width: 100px;
        font-size: 0.8125rem;
        padding: 0 12px;
    }

    .wd-coupon-offer-col {
        flex-basis: 84px;
        max-width: 90px;
        padding-right: 10px;
        margin-right: 10px;
    }

    .wd-coupon-offer-text {
        font-size: 1.125rem;
    }

    .wd-coupon-type {
        font-size: 0.75rem;
    }
}