.dgk-cucina,
.dgk-cucina * { box-sizing: border-box; }

.dgk-cucina {
    --dgk-cucina-accent: #2f8f56;
    --dgk-cucina-green-950: #062314;
    --dgk-cucina-green-900: #0b351f;
    --dgk-cucina-border: #d8d8d8;
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 40px) 0 clamp(40px, 5vw, 76px);
    color: #151515;
}

.dgk-cucina__hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
    align-items: center;
    gap: 44px;
    width: 100%;
    margin: 0 0 22px;
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 8%, rgba(31,138,58,.22), transparent 27%),
        linear-gradient(120deg, var(--dgk-cucina-green-950) 0%, var(--dgk-cucina-green-900) 54%, #173d24 100%);
    box-shadow: 0 20px 54px rgba(13,36,23,.15);
}

.dgk-cucina__hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(to bottom, #1c8c3d 0 33.333%, #fff 33.333% 66.666%, #d23632 66.666% 100%);
}

.dgk-cucina__hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -130px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255,255,255,.022), 0 0 0 78px rgba(255,255,255,.015);
    pointer-events: none;
}

.dgk-cucina__hero-copy,
.dgk-cucina__hero-steps {
    position: relative;
    z-index: 1;
}

.dgk-cucina__eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    color: #9ed8a9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.dgk-cucina__hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 4.8vw, 72px);
    font-weight: 700;
    line-height: .97;
    letter-spacing: -.045em;
}

.dgk-cucina__lead {
    margin: 14px 0 0;
    max-width: 760px;
    color: rgba(255,255,255,.72);
    font-size: clamp(15px, 1.25vw, 20px);
    line-height: 1.6;
}

.dgk-cucina__hero-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.dgk-cucina__hero-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 116px;
    padding: 16px 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,.92);
}

.dgk-cucina__hero-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 800;
}

.dgk-cucina__hero-step strong {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;
}

.dgk-cucina__hero-step.is-active {
    background: rgba(47, 143, 86, .22);
    border-color: rgba(255,255,255,.18);
}

.dgk-cucina__hero-step.is-active span {
    background: #fff;
    color: var(--dgk-cucina-green-900);
}

.dgk-cucina__status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    min-height: 24px;
    font-weight: 650;
    color: #1a1a1a;
}

.dgk-cucina__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dgk-cucina-accent);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--dgk-cucina-accent) 45%, transparent);
    animation: dgk-cucina-pulse 1.5s infinite;
}

.dgk-cucina__status.is-done .dgk-cucina__status-dot { animation: none; }
.dgk-cucina__status.is-error .dgk-cucina__status-dot { background: #c93535; animation: none; }

.dgk-cucina__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.dgk-cucina-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 630px;
    padding: clamp(22px, 2.4vw, 34px);
    padding-left: clamp(28px, 2.8vw, 42px);
    border: 1px solid var(--dgk-cucina-border);
    background: #fff;
    color: #151515;
}

.dgk-cucina-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #1c8c3d 0 33.333%, #fff 33.333% 66.666%, #d23632 66.666% 100%);
}

.dgk-cucina-card__number {
    position: absolute;
    top: 22px;
    right: 24px;
    color: #8c8c8c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
}

.dgk-cucina-card__meta {
    display: flex;
    gap: 8px;
    padding-right: 42px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dgk-cucina-card__meta span {
    border: 1px solid #d8d8d8;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #171717;
    background: #fff;
}

.dgk-cucina-card h2 {
    margin: 0 0 14px;
    color: #141414;
    font-size: clamp(25px, 2vw, 36px);
    line-height: 1.04;
    letter-spacing: -.03em;
}

.dgk-cucina-card__intro {
    margin: 0 0 20px;
    line-height: 1.6;
    color: #202020;
    font-weight: 400;
}

.dgk-cucina-card__section { margin-top: 20px; }

.dgk-cucina-card__section h3,
.dgk-cucina-card__recipe summary {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #191919;
}

.dgk-cucina-card__recipe {
    margin-top: 4px;
    padding: 14px 0;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.dgk-cucina-card__recipe summary {
    cursor: pointer;
    margin: 0;
    list-style: none;
}

.dgk-cucina-card__recipe summary::-webkit-details-marker { display: none; }
.dgk-cucina-card__recipe summary:after { content: '+'; float: right; font-size: 18px; line-height: 12px; }
.dgk-cucina-card__recipe[open] summary:after { content: '−'; }

.dgk-cucina-card__recipe ol {
    margin: 14px 0 0 19px;
    padding: 0;
}

.dgk-cucina-card__recipe li {
    margin-bottom: 9px;
    color: #202020;
    line-height: 1.5;
    font-weight: 400;
}

.dgk-cucina-card__products {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dgk-cucina-card__products li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #ededed;
    color: #202020;
    line-height: 1.38;
    font-weight: 400;
}

.dgk-cucina-card__products a {
    color: #202020;
    text-decoration: none;
    font-weight: 400;
}

.dgk-cucina-card__products a:hover { text-decoration: underline; }

.dgk-cucina-card__products strong {
    white-space: nowrap;
    color: #141414;
    font-weight: 700;
}

.dgk-cucina-card__pantry {
    margin: 0;
    color: #202020;
    line-height: 1.55;
    font-weight: 400;
}


.dgk-cucina-card__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding: 14px 0 12px;
    border-top: 1px solid #e4e4e4;
    color: #171717;
}

.dgk-cucina-card__total span {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dgk-cucina-card__total strong {
    white-space: nowrap;
    color: #111;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.dgk-cucina-card__cart {
    width: 100%;
    margin-top: 0;
    padding: 15px 18px;
    border: 0;
    border-radius: 0;
    background: var(--dgk-cucina-accent);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: filter .18s ease, opacity .18s ease;
}

.dgk-cucina-card__cart:hover { filter: brightness(.92); }
.dgk-cucina-card__cart:disabled { opacity: .7; cursor: default; }
.dgk-cucina-card__cart.is-added { background: #202020; }

.dgk-cucina-card__message {
    min-height: 22px;
    padding-top: 8px;
    font-size: 13px;
    color: #202020;
}

.dgk-cucina-card__message a {
    color: var(--dgk-cucina-accent);
    font-weight: 800;
}

.dgk-cucina-card--loading {
    overflow: hidden;
    animation: dgk-card-breathe 1.6s ease-in-out infinite;
}

.dgk-cucina-skeleton {
    background: #efefef;
    position: relative;
    overflow: hidden;
}

.dgk-cucina-skeleton:after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    animation: dgk-shimmer 1.35s infinite;
}

.dgk-cucina-skeleton--kicker { width: 28%; height: 14px; margin-bottom: 24px; }
.dgk-cucina-skeleton--title { width: 86%; height: 52px; margin-bottom: 22px; }
.dgk-cucina-skeleton--line { width: 100%; height: 14px; margin-bottom: 10px; }
.dgk-cucina-skeleton--line.short { width: 72%; }
.dgk-cucina-skeleton--block { width: 100%; height: 220px; margin-top: 34px; }
.dgk-cucina-skeleton--button { width: 100%; height: 52px; margin-top: auto; }

.dgk-cucina__actions { text-align: center; margin-top: 24px; }

.dgk-cucina__retry,
.dgk-cucina__error button {
    border: 1px solid #222;
    border-radius: 0;
    background: #fff;
    color: #222;
    padding: 12px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.dgk-cucina__error {
    grid-column: 1 / -1;
    min-height: 300px;
    border: 1px solid var(--dgk-cucina-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 32px;
    text-align: center;
    background: #fff;
}

.dgk-cucina__error strong {
    font-size: 24px;
    color: #141414;
}

.dgk-cucina__error button { margin-top: 10px; }

.dgk-cucina-entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dgk-cucina-accent, #2f8f56);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 16px;
    font-weight: 800;
    border-radius: 0;
    line-height: 1.2;
}

.dgk-cucina-entry-button:hover { filter: brightness(.92); }

@keyframes dgk-cucina-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dgk-cucina-accent) 45%, transparent); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes dgk-shimmer { to { transform: translateX(100%); } }
@keyframes dgk-card-breathe { 0%,100% { opacity: .82; } 50% { opacity: 1; } }

@media (max-width: 1180px) {
    .dgk-cucina__hero {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .dgk-cucina__hero-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dgk-cucina__grid { grid-template-columns: 1fr; }
    .dgk-cucina-card { min-height: 0; }
}

@media (max-width: 640px) {
    .dgk-cucina__hero {
        padding: 24px 20px;
        border-radius: 8px;
    }

    .dgk-cucina__hero h1 {
        font-size: clamp(34px, 11vw, 52px);
    }

    .dgk-cucina__hero-steps {
        grid-template-columns: 1fr;
    }

    .dgk-cucina__hero-step {
        min-height: 0;
    }
}

/* v0.1.2 Forteca: bezpieczny stan wejścia i blokady */
.dgk-cucina__gate {
    grid-column: 1 / -1;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid var(--dgk-cucina-border);
    background: #fff;
    text-align: center;
    color: #151515;
}

.dgk-cucina__gate::before {
    content: '';
    width: 54px;
    height: 5px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #1c8c3d 0 33.333%, #f3f3f3 33.333% 66.666%, #d23632 66.666% 100%);
}

.dgk-cucina__gate-kicker {
    margin-bottom: 10px;
    color: var(--dgk-cucina-accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .16em;
}

.dgk-cucina__gate strong {
    display: block;
    margin: 0;
    color: #141414;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.dgk-cucina__gate p {
    max-width: 760px;
    margin: 14px 0 22px;
    color: #242424;
    font-size: 16px;
    line-height: 1.6;
}

.dgk-cucina__gate button {
    border: 0;
    border-radius: 0;
    background: var(--dgk-cucina-accent);
    color: #fff;
    padding: 15px 22px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.dgk-cucina__gate button:hover { filter: brightness(.92); }
.dgk-cucina__gate button:disabled { opacity: .65; cursor: wait; }
.dgk-cucina__gate--limit button { display: none; }

.dgk-cucina-entry-button.is-starting {
    pointer-events: none;
    opacity: .72;
}

/* v0.1.3 - Typography hardening against Woodmart/global content styles. */
.dgk-cucina .dgk-cucina-card__intro {
    color: #1a1a1a !important;
    opacity: 1 !important;
}

.dgk-cucina .dgk-cucina-card__recipe ol,
.dgk-cucina .dgk-cucina-card__recipe li {
    color: #1a1a1a !important;
    opacity: 1 !important;
}

.dgk-cucina .dgk-cucina-card__products li {
    color: #171717 !important;
    opacity: 1 !important;
}

.dgk-cucina .dgk-cucina-card__products a,
.dgk-cucina .dgk-cucina-card__products a:visited,
.dgk-cucina .dgk-cucina-card__products a:hover,
.dgk-cucina .dgk-cucina-card__products a:focus {
    color: #171717 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #171717 !important;
}

.dgk-cucina .dgk-cucina-card__products strong {
    color: #111 !important;
    opacity: 1 !important;
}

.dgk-cucina .dgk-cucina-card__pantry {
    color: #1a1a1a !important;
    opacity: 1 !important;
}

.dgk-cucina .dgk-cucina-card__section h3,
.dgk-cucina .dgk-cucina-card__recipe summary {
    color: #111 !important;
    opacity: 1 !important;
}

/* v0.1.9 - Premium header entry for Cucina AI. */
.dgk-cucina-entry-button {
    position: relative;
    isolation: isolate;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px;
    min-height: 48px;
    padding: 7px 8px 7px 17px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 88% 8%, rgba(48,155,82,.26), transparent 34%),
        linear-gradient(118deg, #07301c 0%, #0b4527 58%, #176a38 100%) !important;
    box-shadow: 0 8px 22px rgba(7,48,28,.16);
    color: #fff !important;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: nowrap;
    transform: translateY(0);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.dgk-cucina-entry-button::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(to bottom, #1c8c3d 0 33.333%, #fff 33.333% 66.666%, #d23632 66.666% 100%);
}

.dgk-cucina-entry-button::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -52px;
    right: -38px;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255,255,255,.025);
    transition: transform .28s ease;
}

.dgk-cucina-entry-button__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.dgk-cucina-entry-button__kicker {
    display: block;
    color: #9ed8a9 !important;
    -webkit-text-fill-color: #9ed8a9 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dgk-cucina-entry-button__label {
    display: block;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -.01em;
}

.dgk-cucina-entry-button__arrow {
    position: relative;
    z-index: 3;
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.dgk-cucina-entry-button__arrow svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dgk-cucina-entry-button:hover,
.dgk-cucina-entry-button:focus-visible {
    filter: none !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(7,48,28,.24);
    color: #fff !important;
}

.dgk-cucina-entry-button:hover::after,
.dgk-cucina-entry-button:focus-visible::after {
    transform: scale(1.08);
}

.dgk-cucina-entry-button:hover .dgk-cucina-entry-button__arrow,
.dgk-cucina-entry-button:focus-visible .dgk-cucina-entry-button__arrow {
    background: #fff;
    border-color: #fff;
    transform: translateX(2px);
}

.dgk-cucina-entry-button:hover .dgk-cucina-entry-button__arrow svg,
.dgk-cucina-entry-button:focus-visible .dgk-cucina-entry-button__arrow svg {
    stroke: #0b4527;
}

.dgk-cucina-entry-button.is-starting {
    transform: none;
    box-shadow: 0 8px 22px rgba(7,48,28,.12);
}

@media (max-width: 767px) {
    .dgk-cucina-entry-button {
        min-height: 42px;
        gap: 9px;
        padding: 6px 7px 6px 13px !important;
    }

    .dgk-cucina-entry-button__kicker { display: none; }
    .dgk-cucina-entry-button__label { font-size: 12px !important; }
    .dgk-cucina-entry-button__arrow {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
    }
}
