/* KOPTORG_DAYUROZHAY_SHOWCASE_V1_1 */

.category-card.dayurozhay-showcase-tile {
    position: relative;
    overflow: hidden;
    display: flex !important;
    grid-column: auto !important;
    width: auto !important;
    color: #ffffff;
    border-color: rgba(23, 92, 46, 0.34);
    background: transparent;
}

.category-card.dayurozhay-showcase-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/static/category_bg/dayurozhayplash.webp') center/cover no-repeat;
    filter: none;
    opacity: 1;
    z-index: 0;
}

.category-card.dayurozhay-showcase-tile > * {
    position: relative;
    z-index: 1;
}

#main-screen #categories-grid-main .category-card.dayurozhay-showcase-tile h3,
#main-screen #categories-grid-main .category-card.dayurozhay-showcase-tile p {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.58);
}

#main-screen #categories-grid-main .category-card.dayurozhay-showcase-tile p {
    margin-top: auto;
    margin-bottom: 0;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 700;
}

.dayurozhay-showcase-scroll {
    height: calc(100dvh - 112px);
    overflow-y: auto;
    padding: 14px 14px 110px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 15% 0%, rgba(126, 184, 89, 0.14), transparent 38%),
        #f5f7f2;
}

.dayurozhay-showcase-hero {
    max-width: 1080px;
    margin: 0 auto 18px;
    padding: 16px;
    border: 1px solid rgba(69, 115, 62, 0.16);
    border-radius: 20px;
    background: linear-gradient(180deg, #fffef9 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(30, 71, 38, 0.08);
    text-align: center;
}

.dayurozhay-showcase-shimmer {
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 19px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(110deg, #2e7d32 0%, #6da949 27%, #efb347 50%, #6da949 73%, #2e7d32 100%);
    background-size: 240% 100%;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.26);
    animation: dayurozhayShowcaseShimmer 3.5s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

.dayurozhay-showcase-shimmer:active {
    transform: translateY(1px) scale(0.99);
}

.dayurozhay-showcase-shimmer-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes dayurozhayShowcaseShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dayurozhay-showcase-hero p {
    max-width: 760px;
    margin: 14px auto 0;
    color: #415247;
    font-size: 15px;
    line-height: 1.52;
}

.dayurozhay-showcase-notice {
    margin: 13px auto 0;
    max-width: 780px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4f0df;
    color: #5c5133;
    font-size: 12px;
    line-height: 1.4;
}

.dayurozhay-showcase-status {
    max-width: 1080px;
    margin: 0 auto 14px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #425046;
    text-align: center;
    font-size: 14px;
}

.dayurozhay-showcase-status:empty {
    display: none;
}

.dayurozhay-showcase-status.is-error {
    background: #fff0ed;
    color: #9b3525;
}

.dayurozhay-showcase-groups {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dayurozhay-showcase-group {
    min-width: 0;
}

.dayurozhay-showcase-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px 10px;
    color: #263f2c;
    font-family: var(--font-accent, inherit);
    font-size: 20px;
    line-height: 1.2;
}

.dayurozhay-showcase-group-count {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(73, 126, 61, 0.1);
    color: #527248;
    font-size: 12px;
    font-weight: 700;
}

.dayurozhay-showcase-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dayurozhay-showcase-product {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(41, 86, 48, 0.12);
    border-radius: var(--radius-md, 14px);
    background: var(--panel-bg, #ffffff);
    box-shadow: var(--shadow-1, 0 3px 10px rgba(0, 0, 0, 0.08));
    overflow: hidden;
}

.dayurozhay-showcase-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9eee7;
}

.dayurozhay-showcase-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dayurozhay-showcase-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #6f836f;
}

.dayurozhay-showcase-first-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    border-radius: 999px;
    background: linear-gradient(110deg, #f1b53d, #f8db7b, #e9a927);
    color: #4f3806;
    box-shadow: 0 4px 12px rgba(67, 47, 2, 0.22);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
}

.dayurozhay-showcase-product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.dayurozhay-showcase-product-name {
    margin: 0;
    min-height: 2.5em;
    color: var(--text-primary, #162319);
    font-family: var(--font-accent, inherit);
    font-size: 16px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.dayurozhay-showcase-price {
    margin-top: 8px;
    color: #1f6534;
    font-size: 17px;
    font-weight: 900;
}

.dayurozhay-showcase-quantity,
.dayurozhay-showcase-location,
.dayurozhay-showcase-seller {
    margin-top: 5px;
    color: var(--text-muted, #667269);
    font-size: 12px;
    line-height: 1.35;
}

.dayurozhay-showcase-seller {
    color: #3e5143;
    font-weight: 700;
}

.dayurozhay-showcase-actions {
    margin-top: auto;
    padding-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dayurozhay-showcase-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 9px;
    border-radius: 11px;
    border: 1px solid #4d8258;
    background: #ffffff;
    color: #315f3a;
    text-decoration: none;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
}

.dayurozhay-showcase-action--primary {
    background: #3f7b4c;
    color: #ffffff;
    border-color: #3f7b4c;
}

.dayurozhay-showcase-action:disabled {
    opacity: 0.55;
    cursor: default;
}

.dayurozhay-showcase-cta {
    max-width: 1080px;
    margin: 18px auto 0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 18px;
    border: 1px solid rgba(46, 101, 56, 0.16);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(31, 73, 37, 0.07);
}

.dayurozhay-showcase-cta--wish {
    background: linear-gradient(135deg, #fff8e9, #ffffff);
}

.dayurozhay-showcase-cta--seller {
    background: linear-gradient(135deg, #eef7eb, #ffffff);
}

.dayurozhay-showcase-cta h2 {
    margin: 0;
    color: #28442f;
    font-size: 18px;
}

.dayurozhay-showcase-cta p {
    margin: 6px 0 0;
    color: #5c685f;
    font-size: 13px;
    line-height: 1.4;
}

.dayurozhay-showcase-cta-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #477f52;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.dayurozhay-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(12, 30, 17, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dayurozhay-contact-modal.is-open {
    display: flex;
}

.dayurozhay-contact-dialog {
    position: relative;
    width: min(440px, 100%);
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.dayurozhay-contact-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef1ed;
    font-size: 23px;
    cursor: pointer;
}

.dayurozhay-contact-title {
    padding: 0 28px;
    color: #273f2d;
    font-size: 20px;
    font-weight: 900;
}

.dayurozhay-contact-seller {
    margin-top: 10px;
    color: #425447;
    font-weight: 700;
}

.dayurozhay-contact-note {
    color: #677069;
    font-size: 13px;
    line-height: 1.4;
}

.dayurozhay-contact-value {
    margin: 14px 0;
    min-height: 30px;
    color: #24482c;
    font-size: 19px;
    font-weight: 900;
}

.dayurozhay-contact-reveal,
.dayurozhay-contact-call {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #407a4c;
    color: #ffffff;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-sizing: border-box;
}

.dayurozhay-contact-call {
    margin-top: 8px;
    background: #2e6239;
}

@media (min-width: 760px) {
    .dayurozhay-showcase-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .dayurozhay-showcase-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    #main-screen #categories-grid-main .category-card.dayurozhay-showcase-tile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-column: auto !important;
    }

    .dayurozhay-showcase-scroll {
        padding-left: 10px;
        padding-right: 10px;
    }

    .dayurozhay-showcase-hero {
        padding: 14px 12px;
    }

    .dayurozhay-showcase-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .dayurozhay-showcase-cta-button {
        width: 100%;
        box-sizing: border-box;
    }

    .dayurozhay-showcase-actions {
        grid-template-columns: 1fr;
    }
}
