.ozl-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    border-style: solid;
}

.ozl-card-horizontal {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.ozl-card-horizontal .ozl-thumb {
    flex: 0 0 160px;
    max-width: 160px;
}

.ozl-card-horizontal .ozl-content {
    flex: 1;
}

.ozl-card-horizontal .ozl-actions {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
}

.ozl-card-product .ozl-actions {
    flex-direction: column;
    align-items: stretch;
}

.ozl-card-product.ozl-card-horizontal .ozl-actions {
    flex-direction: row;
    align-items: center;
}

.ozl-card-product .ozl-actions .ozl-button {
    width: 100%;
}

.ozl-card-product.ozl-card-horizontal .ozl-actions .ozl-button {
    width: auto;
    white-space: nowrap;
}

.ozl-card-product .ozl-qty {
    width: 100%;
    justify-content: center;
}

.ozl-card-product.ozl-card-horizontal .ozl-qty {
    width: auto;
}

.ozl-thumb {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
}

.ozl-thumb::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.ozl-ratio-4-3::before {
    padding-top: 75%;
}

.ozl-ratio-16-9::before {
    padding-top: 56.25%;
}

.ozl-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ozl-fit-cover {
    object-fit: cover;
}

.ozl-fit-contain {
    object-fit: contain;
}

.ozl-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ozl-title a {
    text-decoration: none;
    color: inherit;
}

.ozl-title-center {
    text-align: center;
}

.ozl-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f2937;
}

.ozl-price-center {
    text-align: center;
}

.ozl-price del {
    color: #9ca3af;
    font-size: 0.8em;
    margin-right: 6px;
}

.ozl-price ins {
    text-decoration: none;
}

.ozl-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ozl-meta-item {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 8px;
}

.ozl-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ozl-actions-column {
    flex-direction: column;
    align-items: stretch;
}

.ozl-button {
    border: 0;
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    justify-content: center;
}

.ozl-button-secondary {
    border: 1px solid #e5e7eb;
}

.ozl-secondary-php-wrap {
    width: 100%;
}
.ozl-secondary-php-wrap a {
    display: block;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.ozl-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.ozl-btn-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ozl-btn-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.ozl-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.ozl-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: #111827;
    color: #fff;
    border: 0 solid transparent;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: auto;
}

.ozl-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e7eb;
    padding: 4px 8px;
}

.ozl-qty-input {
    width: 48px;
    border: 0;
    text-align: center;
}

/* Ocultar flechas nativas en inputs number */
.ozl-qty-input::-webkit-outer-spin-button,
.ozl-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ozl-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ozl-qty-btn {
    background: #f3f4f6;
    border: 0;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.ozl-excerpt {
    margin: 0;
    color: #4b5563;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ozl-clamp-2 {
    -webkit-line-clamp: 2;
}

.ozl-clamp-3 {
    -webkit-line-clamp: 3;
}

.ozl-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ozl-spin 0.5s linear infinite;
}

@keyframes ozl-spin {
    to { transform: rotate(360deg); }
}

.ozl-added {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .ozl-stack-mobile.ozl-card-horizontal {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Catálogo vertical P1/P2: marca → título → imagen → cantidad → carrito */
.ozl-card.ozl-layout-catalog {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 20px;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.ozl-layout-catalog > style {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ozl-brand-tag {
    display: inline-block !important;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    line-height: 1.3;
    margin: 0;
    order: 1;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100%;
    box-sizing: border-box;
}

.ozl-layout-catalog .ozl-brand-tag--catalog {
    order: 1;
    margin-bottom: 0;
}

/* Menos aire entre “marca” y el título (el gap del flex sumaba demasiado) */
.ozl-layout-catalog .ozl-brand-tag--catalog + .ozl-title {
    margin-top: -6px;
}

.ozl-brand-tag .ozl-brand-placeholder {
    color: #9ca3af;
    font-weight: 700;
}

.ozl-layout-catalog .ozl-title {
    font-weight: 500;
    color: #000;
    width: 100%;
    max-width: 100%;
    text-align: center;
    order: 2;
    -webkit-box-orient: vertical;
}

.ozl-layout-catalog .ozl-cat-thumb {
    order: 3;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    background: #f5f5f5;
    overflow: hidden;
}

.ozl-layout-catalog .ozl-actions {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    order: 5;
}

.ozl-layout-catalog .ozl-cat-qty {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    padding: 0 4px;
    gap: 0;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}

.ozl-layout-catalog .ozl-cat-qty .ozl-qty-btn {
    flex: 0 0 auto;
    min-width: 44px;
    width: auto;
    height: auto;
    min-height: 42px;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    outline: none;
    background: transparent !important;
    color: #111;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    padding: 0 10px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.ozl-layout-catalog .ozl-cat-qty .ozl-qty-btn:focus-visible {
    outline: 2px solid #0062b8;
    outline-offset: 2px;
}

.ozl-layout-catalog .ozl-cat-qty .ozl-qty-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    padding: 10px 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    text-align: center;
    background: transparent;
}

.ozl-layout-catalog .ozl-cat-cart-btn {
    width: 100%;
    padding: 12px 16px;
    font-weight: 700;
    border: none;
    background: #0062b8 !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.ozl-layout-catalog .ozl-cat-cart-btn .ozl-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}
