.kraj-catalog-page {
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
    padding: 52px 0 72px;
}

.kraj-catalog-heading {
    margin-bottom: 32px;
    text-align: center;
}

.kraj-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #9B7840;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.kraj-catalog-heading h1 {
    margin: 0 0 12px;
    color: #111111;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

.kraj-catalog-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #6B7280;
    font-size: 15px;
}

.kraj-empty-catalog {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px 24px;
    border: 1px solid #F0D5DE;
    border-radius: 18px;
    background: #FFFFFF;
    text-align: center;
    box-shadow: 0 6px 22px rgba(17, 17, 17, 0.06);
}

.kraj-catalog-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 18px;
    background: #FFF0F4;
    color: #B18B4D;
    font-size: 30px;
}

.kraj-empty-catalog h2 {
    margin: 0 0 12px;
    color: #111111;
    font-size: 23px;
}

.kraj-empty-catalog p {
    max-width: 540px;
    margin: 0 auto 24px;
    color: #6B7280;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .kraj-catalog-page {
        padding: 36px 0 48px;
    }

    .kraj-empty-catalog {
        padding: 30px 18px;
    }
}


.kraj-product-category {
    margin-top: 42px;
}

.kraj-category-heading {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F0D5DE;
}

.kraj-category-heading-content,
.kraj-subcategory-heading-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kraj-category-heading-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #FFF0F4;
    border: 2px solid #D4AF70;
    box-shadow: 0 4px 12px rgba(212, 175, 112, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kraj-subcategory-avatar {
    width: 48px;
    height: 48px;
    border-width: 1.5px;
}

.kraj-category-heading-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kraj-category-heading h2,
.kraj-subcategory h3 {
    margin: 0 0 6px;
    color: #111111;
    font-size: 25px;
}

.kraj-subcategory {
    margin-top: 36px;
}

.kraj-category-heading p,
.kraj-subcategory-description {
    margin: 0;
    color: #6B7280;
    line-height: 1.7;
}

.kraj-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.kraj-product-card {
    overflow: hidden;
    border: 1px solid #F0D5DE;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 6px 22px rgba(17, 17, 17, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.kraj-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.09);
}

.kraj-product-image-link {
    display: block;
    overflow: hidden;
    background: #FFF0F4;
}

.kraj-product-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 12px;
}

.kraj-product-image-placeholder {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, #FFF0F4, #FBE6EC);
    color: #B18B4D;
}

.kraj-product-image-placeholder span {
    font-size: 46px;
}

.kraj-product-image-placeholder small {
    color: #6B7280;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.kraj-product-info {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
}

.kraj-product-info h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
}

.kraj-product-info h3 a {
    color: #111111;
    text-decoration: none;
}

.kraj-product-info h3 a:hover {
    color: #9B7840;
}

.kraj-product-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.kraj-product-price-label,
.kraj-product-detail-price-label {
    margin: auto 0 4px;
    color: #6B7280;
    font-size: 11px;
}

.kraj-product-price {
    margin: 0 0 16px;
    color: #111111;
    font-size: 23px;
    font-weight: 800;
}

.kraj-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: #D4AF70;
    color: #111111;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.kraj-product-button:hover {
    background: #C49B54;
}

.kraj-product-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.kraj-product-unavailable {
    display: inline-block;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: #FFF0F4;
    color: #A52B36;
    font-size: 12px;
    font-weight: 700;
}

.kraj-subcategory {
    margin-top: 30px;
}

.kraj-subcategory > h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.kraj-subcategory-description {
    margin: -8px 0 16px;
}

.kraj-product-detail {
    width: min(100% - 32px, 1100px);
    margin: 0 auto;
    padding: 38px 0 70px;
}

.kraj-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #6B7280;
    font-weight: 700;
    text-decoration: none;
}

.kraj-back-link:hover {
    color: #9B7840;
}

.kraj-product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 42px;
}

.kraj-product-detail-media {
    overflow: hidden;
    border: 1px solid #F0D5DE;
    border-radius: 18px;
    background: #FFFFFF;
}

.kraj-product-detail-image {
    display: block;
    width: 100%;
    max-height: 540px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 20px;
}

.kraj-product-detail-placeholder {
    min-height: 420px;
}

.kraj-product-detail-info h1 {
    margin: 0 0 12px;
    color: #111111;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.kraj-product-detail-categories {
    margin: 0 0 26px;
    color: #6B7280;
    font-size: 13px;
}

.kraj-product-detail-price-label {
    margin-top: 22px;
}

.kraj-product-detail-price {
    margin: 0 0 28px;
    color: #111111;
    font-size: 32px;
    font-weight: 800;
}

.kraj-product-full-description {
    margin-bottom: 24px;
    color: #6B7280;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.kraj-product-full-description h2 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 19px;
}

.kraj-product-stock-note,
.kraj-cart-coming-soon {
    color: #6B7280;
    font-size: 12px;
    line-height: 1.7;
}

.kraj-cart-coming-soon {
    margin-top: 10px;
}

@media (max-width: 1000px) {
    .kraj-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .kraj-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .kraj-product-card {
        border-radius: 12px !important;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .kraj-product-image-link,
    .kraj-product-image-placeholder {
        height: 100px !important;
        min-height: 100px !important;
    }

    .kraj-product-image {
        height: 100px !important;
        max-height: 100px !important;
        padding: 4px !important;
    }

    .kraj-product-info {
        min-height: unset !important;
        padding: 8px 6px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .kraj-product-info h3 {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin: 0 0 4px !important;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .kraj-product-description {
        display: none !important;
    }

    .kraj-product-price-label {
        font-size: 9px !important;
        margin: auto 0 2px !important;
    }

    .kraj-product-price {
        font-size: 14px !important;
        margin: 0 0 6px !important;
        font-weight: 800 !important;
    }

    .kraj-product-card-cart-form {
        margin-top: auto !important;
        width: 100% !important;
    }

    .kraj-product-qty-row {
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .kraj-product-qty-label {
        font-size: 10px !important;
    }

    .kraj-product-qty-input {
        width: 44px !important;
        height: 28px !important;
        font-size: 12px !important;
        padding: 2px !important;
    }

    .kraj-product-card-btn {
        padding: 6px 4px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        margin: 0 0 4px 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .kraj-product-view-link {
        font-size: 10px !important;
        margin-top: 2px !important;
        text-align: center;
        width: 100%;
    }

    .kraj-product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kraj-product-detail-placeholder {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .kraj-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .kraj-product-image-link,
    .kraj-product-image-placeholder {
        height: 110px !important;
        min-height: 110px !important;
    }

    .kraj-product-image {
        height: 110px !important;
        max-height: 110px !important;
        padding: 4px !important;
    }

    .kraj-product-info {
        padding: 8px 6px !important;
    }

    .kraj-product-info h3 {
        font-size: 12px !important;
    }

    .kraj-product-price {
        font-size: 15px !important;
    }
}

@media (max-width: 360px) {
    .kraj-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .kraj-product-image-link,
    .kraj-product-image-placeholder {
        height: 95px !important;
        min-height: 95px !important;
    }

    .kraj-product-image {
        height: 95px !important;
        max-height: 95px !important;
    }

    .kraj-product-info {
        padding: 6px 4px !important;
    }

    .kraj-product-info h3 {
        font-size: 11px !important;
    }

    .kraj-product-price {
        font-size: 13px !important;
    }

    .kraj-product-card-btn {
        font-size: 9.5px !important;
        padding: 5px 3px !important;
    }
}

/* Imágenes uniformes en las tarjetas del catálogo */
.kraj-product-image-link {
    display: flex;
    height: 190px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFF0F4;
    cursor: zoom-in;
}

.kraj-product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 190px;
    object-fit: contain;
    padding: 12px;
    transition: transform 180ms ease;
}

.kraj-product-image-link:hover .kraj-product-image {
    transform: scale(1.04);
}

.kraj-product-image-placeholder {
    width: 100%;
    min-height: 190px;
    height: 190px;
}

/* Imagen ampliada en la ficha */
.kraj-product-detail-image {
    display: block;
    width: 100%;
    height: 420px;
    max-height: 70vh;
    aspect-ratio: auto;
    object-fit: contain;
    padding: 20px;
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .kraj-product-detail-image {
        height: 320px;
    }
}
