.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;
    width: 100%;
}

.ozl-card-product .ozl-actions.ozl-actions-product-row {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
}

.ozl-card-product .ozl-actions.ozl-actions-product-row .ozl-btn-cart {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.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-actions.ozl-actions-product-row .ozl-button {
    width: auto;
}

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

.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-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-badges-right {
    justify-content: flex-end;
}

.ozl-badges-left {
    justify-content: flex-start;
}

.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;
}

.ozl-card-product {
    --ozl-product-accent: #f97316;
    --ozl-product-btn-idle-bg: #f3f4f6;
    --ozl-product-btn-idle-fg: #111827;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    overflow: hidden;
}

.ozl-card-product .ozl-thumb {
    background: #fff;
}

.ozl-card-product .ozl-thumb img {
    padding: 8px;
    box-sizing: border-box;
}

.ozl-card-product .ozl-badges {
    top: 18px;
    left: 18px;
    right: 18px;
}

.ozl-card-product .ozl-badge {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ozl-card-product .ozl-badge-brand {
    background: #f97316;
    color: #fff;
    border: 0;
}

.ozl-product-summary {
    border-top: 1px solid #d9d9d9;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
}

.ozl-product-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.ozl-product-title a {
    color: inherit;
}

.ozl-product-divider {
    height: 0;
    border: 0;
    border-top: 1px solid #d9d9d9;
    margin: 14px 0 12px;
    width: 100%;
}

.ozl-product-divider--before-actions {
    margin: 0 0 0;
    flex-shrink: 0;
}

.ozl-product-category {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: #111827;
}

.ozl-card-product .ozl-qty {
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    min-height: 42px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fff;
}

.ozl-card-product .ozl-qty-input {
    width: 44px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    background: transparent;
}

.ozl-card-product .ozl-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: #111827;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ozl-card-product .ozl-qty-btn:hover {
    background: #f3f4f6;
}

.ozl-card-product .ozl-qty-btn:focus-visible {
    outline: 2px solid #f4b223;
    outline-offset: 2px;
}

.ozl-card-product .ozl-button {
    min-height: 44px;
    border-radius: 8px;
}

.ozl-card-product .ozl-quote-btn,
.ozl-card-product .ozl-wa-btn {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ozl-card-product .ozl-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    min-height: 44px;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    background: var(--ozl-product-btn-idle-bg);
    color: var(--ozl-product-btn-idle-fg);
    border: 0;
}

.ozl-card-product .ozl-quote-btn {
    border: 0;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.ozl-card-product .ozl-quote-btn:hover,
.ozl-card-product .ozl-quote-btn:focus-visible {
    background: #f5f5f5 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827;
}

.ozl-card-product .ozl-quote-btn .ozl-quote-btn-inner,
.ozl-card-product .ozl-quote-btn .ozl-quote-btn-label {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.ozl-card-product .ozl-quote-btn:hover .ozl-quote-btn-inner,
.ozl-card-product .ozl-quote-btn:hover .ozl-quote-btn-label,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-quote-btn-inner,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-quote-btn-label {
    color: #111827 !important;
    -webkit-text-fill-color: #111827;
}

.ozl-card-product .ozl-quote-btn .ozl-quote-btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ozl-card-product .ozl-quote-btn .ozl-btn-icon {
    width: auto;
    height: auto;
    background: transparent;
    flex-shrink: 0;
}

.ozl-card-product .ozl-quote-btn .ozl-btn-icon--cart svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ozl-card-product .ozl-quote-btn .ozl-btn-icon--cart svg path {
    vector-effect: non-scaling-stroke;
}

/* Carrito integrado: trazo y ruedas en blanco (vence estilos del tema en el svg) */
.ozl-card-product .ozl-quote-btn:not(:hover):not(:focus-visible) .ozl-btn-icon--cart svg circle {
    fill: #ffffff !important;
}

.ozl-card-product .ozl-quote-btn:not(:hover):not(:focus-visible) .ozl-btn-icon--cart svg path {
    fill: none !important;
    stroke: #ffffff !important;
}

.ozl-card-product .ozl-quote-btn:hover .ozl-btn-icon--cart svg circle,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-btn-icon--cart svg circle {
    fill: #111827 !important;
}

.ozl-card-product .ozl-quote-btn:hover .ozl-btn-icon--cart svg path,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-btn-icon--cart svg path {
    stroke: #111827 !important;
}

.ozl-card-product .ozl-quote-btn .ozl-btn-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ozl-card-product .ozl-quote-btn:not(:hover):not(:focus-visible) .ozl-btn-icon:not(.ozl-btn-icon--cart) svg,
.ozl-card-product .ozl-quote-btn:not(:hover):not(:focus-visible) .ozl-btn-icon:not(.ozl-btn-icon--cart) svg * {
    stroke: #ffffff !important;
    fill: #ffffff !important;
}

.ozl-card-product .ozl-quote-btn:hover .ozl-btn-icon:not(.ozl-btn-icon--cart) svg,
.ozl-card-product .ozl-quote-btn:hover .ozl-btn-icon:not(.ozl-btn-icon--cart) svg *,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-btn-icon:not(.ozl-btn-icon--cart) svg,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-btn-icon:not(.ozl-btn-icon--cart) svg * {
    stroke: #111827 !important;
    fill: #111827 !important;
}

.ozl-card-product .ozl-quote-btn .ozl-btn-icon-img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
    transition: filter 0.2s ease;
    /* Ícono oscuro en archivo → se ve blanco sobre naranja; en hover vuelve a negro */
    filter: brightness(0) invert(1);
}

.ozl-card-product .ozl-quote-btn:hover .ozl-btn-icon-img,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-btn-icon-img {
    filter: brightness(0);
}

.ozl-card-product .ozl-quote-btn .ozl-quote-btn-label {
    line-height: 1.2;
}

.ozl-card-product .ozl-wa-btn .ozl-wa-icon {
    width: auto;
    height: auto;
    background: transparent;
}

.ozl-card-product .ozl-wa-btn .ozl-wa-icon svg {
    width: 22px;
    height: 22px;
}

.ozl-card-product .ozl-wa-btn:hover,
.ozl-card-product .ozl-wa-btn:focus-visible {
    background: var(--ozl-product-accent) !important;
    color: #fff !important;
}

.ozl-card-product .ozl-wa-btn:hover .ozl-wa-icon svg,
.ozl-card-product .ozl-wa-btn:focus-visible .ozl-wa-icon svg {
    fill: currentColor;
}

.ozl-card-product .ozl-quote-btn .ozl-spinner {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

.ozl-card-product .ozl-quote-btn:hover .ozl-spinner,
.ozl-card-product .ozl-quote-btn:focus-visible .ozl-spinner {
    border-color: rgba(17, 24, 39, 0.2);
    border-top-color: #111827;
}

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