/**
 * TejCart Shop / Product Listing Styles
 *
 * Loaded only on pages that render the [tejcart_products] grid or the
 * tejcart shop page. Depends on design tokens declared in
 * tejcart-public.css.
 *
 * @package TejCart
 */

.tejcart-shop-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--tejcart-space-3);
    margin: 0 0 var(--tejcart-space-5);
}

.tejcart-shop-meta-count {
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    font-weight: var(--tejcart-font-weight-medium);
}

.tejcart-shop-meta .tejcart-product-sort {
    margin-left: auto;
}

.tejcart-product-sort {
    display: inline-flex;
    align-items: center;
}

.tejcart-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--tejcart-surface, #fff);
    color: var(--tejcart-text, inherit);
    border: 1px solid var(--tejcart-border, #d1d5db);
    border-radius: var(--tejcart-radius-md, 6px);
    padding: 0.4em 2em 0.4em 0.75em;
    font-size: var(--tejcart-font-size-sm);
    line-height: 1.4;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%236b7280'><path d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.6em center;
    background-size: 10px 7px;
}

.tejcart-sort-select:focus {
    outline: 2px solid var(--tejcart-focus, #2563eb);
    outline-offset: 1px;
}

.tejcart-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tejcart-space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 600px) {
    .tejcart-product-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(
                    min(100%, calc(
                        (100% - (var(--tejcart-product-columns, 4) - 1) * var(--tejcart-space-6))
                        / var(--tejcart-product-columns, 4)
                    )),
                    1fr
                )
            );
        gap: var(--tejcart-space-6);
    }
}

@media (min-width: 960px) {
    .tejcart-product-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(
                    min(100%, calc(
                        (100% - (var(--tejcart-product-columns, 4) - 1) * var(--tejcart-space-7))
                        / var(--tejcart-product-columns, 4)
                    )),
                    1fr
                )
            );
        gap: var(--tejcart-space-7);
    }
}

.tejcart-product-grid--empty {
    grid-template-columns: 1fr;
    padding: var(--tejcart-space-10) var(--tejcart-space-5);
    text-align: center;
    color: var(--tejcart-text-muted);
    background: var(--tejcart-bg-surface-alt);
    border-radius: var(--tejcart-radius-lg);
    border: 1px dashed var(--tejcart-border);
}

.tejcart-product-box {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--tejcart-bg-surface);
    border: 1px solid var(--tejcart-border-subtle);
    border-radius: var(--tejcart-radius-md);
    padding: var(--tejcart-space-2);
    box-shadow: var(--tejcart-shadow-subtle);
    transition:
        box-shadow var(--tejcart-duration-base) var(--tejcart-ease),
        border-color var(--tejcart-duration-base) var(--tejcart-ease),
        transform var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-product-box:hover,
.tejcart-product-box:focus-within {
    border-color: var(--tejcart-border);
    box-shadow: var(--tejcart-shadow-medium);
    transform: translateY(-2px);
}

@media (hover: hover) {
    .tejcart-product-box-image::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 40%;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%);
        opacity: 0;
        transition: opacity var(--tejcart-duration-base) var(--tejcart-ease);
    }

    .tejcart-product-box:hover .tejcart-product-box-image::after,
    .tejcart-product-box:focus-within .tejcart-product-box-image::after {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tejcart-product-box-image::after {
        display: none;
    }
}

.tejcart-product-box-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--tejcart-bg-surface-alt);
    border-radius: var(--tejcart-radius-sm);
}

.tejcart-product-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--tejcart-duration-slow) var(--tejcart-ease);
}

.tejcart-product-box:hover .tejcart-product-box-image img {
    transform: scale(1.04);
}

.tejcart-product-box-image.has-hover-image .tejcart-product-box-image-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition:
        opacity var(--tejcart-duration-base) var(--tejcart-ease),
        transform var(--tejcart-duration-slow) var(--tejcart-ease);
}

@media (hover: hover) {
    .tejcart-product-box:hover .tejcart-product-box-image-hover {
        opacity: 1;
    }
}

.tejcart-product-box-badges {
    position: absolute;
    top: var(--tejcart-space-3);
    right: var(--tejcart-space-3);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--tejcart-space-1);
    z-index: var(--tejcart-z-raised);
    pointer-events: none;
}

.tejcart-sale-badge {
    position: absolute;
    top: var(--tejcart-space-3);
    right: var(--tejcart-space-3);
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: var(--tejcart-accent-active);
    color: var(--tejcart-accent-foreground);
    border-radius: var(--tejcart-radius-pill);
    font-size: 11px;
    font-weight: var(--tejcart-font-weight-bold);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    z-index: var(--tejcart-z-raised);
    box-shadow: var(--tejcart-shadow-pill);
}

.tejcart-product-box-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--tejcart-space-3) var(--tejcart-space-1) var(--tejcart-space-1);
    flex: 1;
}

.tejcart-product-box-category {
    font-size: 10px;
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.tejcart-product-box-name {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--tejcart-font-family);
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    line-height: var(--tejcart-line-height-snug);
    letter-spacing: var(--tejcart-letter-spacing-tight);
    margin: 0;
}

.tejcart-product-box-name a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-product-box-name a:hover,
.tejcart-product-box-name a:focus-visible {
    color: var(--tejcart-text-link-hover);
    text-decoration: none;
}

.tejcart-product-box-description {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--tejcart-font-size-xs);
    color: var(--tejcart-text-muted);
    line-height: var(--tejcart-line-height-snug);
    margin: 0;
}

.tejcart-product-box-price {
    display: flex;
    align-items: baseline;
    gap: var(--tejcart-space-2);
    font-size: var(--tejcart-font-size-md);
    margin-top: 2px;
    padding-top: 0;
}

.tejcart-product-box-price .tejcart-price-group {
    display: inline-flex;
    align-items: baseline;
    gap: var(--tejcart-space-2);
}

.tejcart-product-box-price .tejcart-price-regular {
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    text-decoration: line-through;
    font-weight: var(--tejcart-font-weight-regular);
    order: 2;
}

.tejcart-product-box-price .tejcart-price-sale {
    order: 1;
}

.tejcart-product-box-price .tejcart-price-sale,
.tejcart-product-box-price .tejcart-price {
    font-size: var(--tejcart-font-size-md);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
}

.tejcart-product-box-actions {
    margin-top: var(--tejcart-space-2);
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-1);
}

.tejcart-product-box-actions .tejcart-button {
    width: 100%;
    min-height: 40px;
    padding: 0 var(--tejcart-space-4);
    font-size: var(--tejcart-font-size-sm);
    border-radius: var(--tejcart-radius-sm);
}

.tejcart-product-box-actions .tejcart-product-smart-buttons {
    margin-top: 0;
    width: 100%;
    gap: var(--tejcart-space-2);
}

.tejcart-product-box-actions .tejcart-product-smart-buttons > div[id^="tejcart-product-"] {
    width: 100%;
    min-height: 38px;
}

.tejcart-product-box-actions .tejcart-paylater-message {
    margin: 0;
    min-height: 0;
}

.tejcart-product-box-actions .tejcart-paylater-message:empty {
    display: none;
}

.tejcart-stock-pill {
    position: absolute;
    top: var(--tejcart-space-3);
    left: var(--tejcart-space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--tejcart-space-1);
    padding: 5px 10px;
    border-radius: var(--tejcart-radius-pill);
    font-size: 11px;
    font-weight: var(--tejcart-font-weight-semibold);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: var(--tejcart-z-raised);
    box-shadow: var(--tejcart-shadow-pill);
}

.tejcart-stock-pill--low {
    background: var(--tejcart-warning-bg);
    color: var(--tejcart-warning-fg);
    border: 1px solid var(--tejcart-warning-border);
}

.tejcart-stock-pill--out {
    background: var(--tejcart-bg-surface-alt);
    color: var(--tejcart-text-muted);
    border: 1px solid var(--tejcart-border);
}

.tejcart-stock-pill--new {
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    border: 1px solid var(--tejcart-accent);
}

.tejcart-product-box.is-out-of-stock .tejcart-product-box-image img {
    opacity: 0.6;
    filter: grayscale(30%);
}

.tejcart-product-box.is-out-of-stock .tejcart-button {
    background: var(--tejcart-accent-soft);
    color: var(--tejcart-text-disabled);
    cursor: not-allowed;
    pointer-events: none;
}

.tejcart-product-box--skeleton {
    pointer-events: none;
}

.tejcart-product-box--skeleton .tejcart-product-box-image {
    background: var(--tejcart-bg-surface-alt);
}

.tejcart-product-box--skeleton .tejcart-product-box-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: tejcart-shimmer 1.4s infinite var(--tejcart-ease-standard);
}

.tejcart-product-box--skeleton .tejcart-skeleton-line {
    display: block;
    height: 12px;
    background: var(--tejcart-bg-surface-alt);
    border-radius: var(--tejcart-radius-sm);
    margin-bottom: var(--tejcart-space-2);
    overflow: hidden;
    position: relative;
}

.tejcart-product-box--skeleton .tejcart-skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: translateX(-100%);
    animation: tejcart-shimmer 1.4s infinite var(--tejcart-ease-standard);
}

.tejcart-product-box--skeleton .tejcart-skeleton-line--title { width: 82%; height: 14px; }
.tejcart-product-box--skeleton .tejcart-skeleton-line--desc  { width: 95%; }
.tejcart-product-box--skeleton .tejcart-skeleton-line--price { width: 36%; height: 18px; }

.tejcart-shop-empty,
.tejcart-shop-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--tejcart-space-4);
    padding: var(--tejcart-space-10) var(--tejcart-space-5);
    text-align: center;
    background: var(--tejcart-bg-surface);
    border: 1px solid var(--tejcart-border);
    border-radius: var(--tejcart-radius-lg);
    color: var(--tejcart-text);
}

.tejcart-shop-empty svg,
.tejcart-shop-error svg {
    width: 72px;
    height: 72px;
    color: var(--tejcart-text-subtle);
}

.tejcart-shop-empty-title,
.tejcart-shop-error-title {
    font-size: var(--tejcart-font-size-lg);
    font-weight: var(--tejcart-font-weight-semibold);
    margin: 0;
}

.tejcart-shop-empty-desc,
.tejcart-shop-error-desc {
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    margin: 0;
    max-width: 42ch;
}

.tejcart-pagination {
    margin: var(--tejcart-space-7) 0 var(--tejcart-space-4);
    display: flex;
    justify-content: center;
}

.tejcart-pagination-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tejcart-space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tejcart-pagination-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tejcart-pagination-item::before,
.tejcart-pagination-item::marker {
    content: none;
}

.tejcart-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--tejcart-space-3);
    border: 1px solid var(--tejcart-border);
    border-radius: var(--tejcart-radius-sm);
    background: var(--tejcart-bg-surface);
    color: var(--tejcart-text);
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-medium);
    line-height: 1;
    text-decoration: none;
    transition:
        background-color var(--tejcart-duration-base) var(--tejcart-ease),
        border-color var(--tejcart-duration-base) var(--tejcart-ease),
        color var(--tejcart-duration-base) var(--tejcart-ease),
        box-shadow var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-pagination a.page-numbers:hover,
.tejcart-pagination a.page-numbers:focus-visible {
    border-color: var(--tejcart-accent);
    background: var(--tejcart-accent-soft);
    color: var(--tejcart-text);
    text-decoration: none;
    outline: none;
}

.tejcart-pagination a.page-numbers:focus-visible {
    box-shadow: var(--tejcart-shadow-focus);
}

.tejcart-pagination .page-numbers.current {
    background: var(--tejcart-accent);
    border-color: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    cursor: default;
}

.tejcart-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--tejcart-text-muted);
    cursor: default;
}

.tejcart-pagination .page-numbers.prev,
.tejcart-pagination .page-numbers.next {
    padding: 0 var(--tejcart-space-4);
    font-weight: var(--tejcart-font-weight-semibold);
}

@media (max-width: 480px) {
    .tejcart-pagination-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tejcart-pagination .page-numbers {
        min-width: var(--tejcart-touch-target);
        height: var(--tejcart-touch-target);
        padding: 0 var(--tejcart-space-2);
        flex: 0 0 auto;
    }

    .tejcart-pagination .page-numbers.prev,
    .tejcart-pagination .page-numbers.next {
        padding: 0 var(--tejcart-space-3);
    }
}

.tejcart-single-product {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--tejcart-space-6) var(--tejcart-space-4) var(--tejcart-space-9);
}

.tejcart-single-product-summary > .tejcart-breadcrumbs {
    margin: 0 0 var(--tejcart-space-1);
    padding: 0;
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
}

.tejcart-single-product-summary > .tejcart-breadcrumbs .tejcart-breadcrumb-item a {
    color: var(--tejcart-accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

.tejcart-single-product-summary > .tejcart-breadcrumbs .tejcart-breadcrumb-active {
    color: var(--tejcart-text);
    font-weight: var(--tejcart-font-weight-medium);
}

.tejcart-single-product-back {
    margin: 0 0 var(--tejcart-space-5);
    font-size: var(--tejcart-font-size-sm);
}

.tejcart-single-product-back a {
    display: inline-flex;
    align-items: center;
    gap: var(--tejcart-space-1);
    padding: 6px 14px;
    color: var(--tejcart-text-muted);
    background: var(--tejcart-bg-surface-alt, transparent);
    border: 1px solid var(--tejcart-border-subtle);
    border-radius: var(--tejcart-radius-pill);
    font-weight: var(--tejcart-font-weight-medium);
    text-decoration: none;
    transition:
        color var(--tejcart-duration-base) var(--tejcart-ease),
        border-color var(--tejcart-duration-base) var(--tejcart-ease),
        background var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-single-product-back a:hover,
.tejcart-single-product-back a:focus-visible {
    color: var(--tejcart-text);
    border-color: var(--tejcart-text);
    background: var(--tejcart-accent-soft);
    text-decoration: none;
    outline: none;
}

.tejcart-single-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--tejcart-space-7);
    align-items: start;
}

@media (min-width: 900px) {
    .tejcart-single-product-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--tejcart-space-8, 40px);
    }
}

.tejcart-single-product-media .tejcart-product-gallery {
    max-width: none;
}

.tejcart-single-product-media .tejcart-gallery-main {
    position: relative;
    margin-bottom: var(--tejcart-space-3);
    border: 0;
    border-radius: var(--tejcart-radius-lg, 12px);
    background: var(--tejcart-bg-surface-alt, #f3f4f6);
    box-shadow: none;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.tejcart-single-product-media .tejcart-gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: transform 600ms var(--tejcart-ease);
}

.tejcart-gallery-sale-badge {
    position: absolute;
    top: var(--tejcart-space-3);
    left: var(--tejcart-space-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: var(--tejcart-bg-surface, #fff);
    color: var(--tejcart-sale-accent, #d12c25);
    border-radius: 50%;
    font-size: 12px;
    font-weight: var(--tejcart-font-weight-bold);
    letter-spacing: 0;
    line-height: 1;
    z-index: var(--tejcart-z-raised, 2);
    box-shadow: var(--tejcart-shadow-pill);
    pointer-events: none;
}

.tejcart-gallery-zoom-btn {
    position: absolute;
    top: var(--tejcart-space-3);
    right: var(--tejcart-space-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--tejcart-bg-surface, #fff);
    color: var(--tejcart-text);
    border: 0;
    border-radius: 50%;
    cursor: zoom-in;
    z-index: calc(var(--tejcart-z-raised, 2) + 1);
    box-shadow: var(--tejcart-shadow-pill);
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-gallery-zoom-btn:hover,
.tejcart-gallery-zoom-btn:focus-visible {
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    outline: none;
}

.tejcart-gallery-zoom-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.tejcart-single-product-media .tejcart-gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tejcart-space-2);
    margin-top: var(--tejcart-space-3);
}

.tejcart-single-product-media .tejcart-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    background: var(--tejcart-bg-surface-alt, #f3f4f6);
    border: 1px solid transparent;
    border-radius: var(--tejcart-radius-md, 8px);
    overflow: hidden;
    cursor: pointer;
    transition:
        border-color var(--tejcart-duration-base) var(--tejcart-ease),
        opacity var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-single-product-media .tejcart-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.tejcart-single-product-media .tejcart-gallery-thumb:hover {
    opacity: 0.85;
    transform: none;
}

.tejcart-single-product-media .tejcart-gallery-thumb.active {
    border-color: var(--tejcart-accent);
    box-shadow: none;
}

.tejcart-single-product-summary {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-3);
    padding-top: 0;
}

.tejcart-single-product-summary > * {
    margin: 0;
}

.tejcart-single-product .tejcart-single-product-summary p {
    margin: 0;
}

.tejcart-single-product-title {
    font-family: var(--tejcart-font-family);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0;
    max-width: none;
}

.tejcart-single-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--tejcart-space-2);
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.tejcart-single-product-price .tejcart-price-prefix {
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    font-weight: var(--tejcart-font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tejcart-single-product-price .tejcart-price-group {
    display: inline-flex;
    align-items: baseline;
    gap: var(--tejcart-space-3);
    flex-wrap: wrap;
}

.tejcart-single-product-price .tejcart-price-sale,
.tejcart-single-product-price .tejcart-price {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.tejcart-single-product-price .tejcart-price-range {
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text-muted);
}

.tejcart-single-product-price .tejcart-price-sale {
    color: var(--tejcart-text);
}

.tejcart-single-product-price .tejcart-price-regular {
    font-size: var(--tejcart-font-size-md);
    font-weight: var(--tejcart-font-weight-regular);
    color: var(--tejcart-text-muted);
    text-decoration: line-through;
    line-height: 1.2;
}

.tejcart-single-product-saved-badge {
    display: none;
}

.tejcart-single-product-summary .tejcart-stock-pill {
    position: static;
    align-self: flex-start;
    box-shadow: none;
    padding: 6px 14px;
    font-size: var(--tejcart-font-size-xs);
    font-weight: var(--tejcart-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--tejcart-radius-pill);
}

.tejcart-single-product-summary .tejcart-stock-pill--in::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(8, 138, 92, 0.18);
    animation: tejcart-stock-pulse 2s ease-in-out infinite;
}

@keyframes tejcart-stock-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(8, 138, 92, 0.18); }
    50% { box-shadow: 0 0 0 5px rgba(8, 138, 92, 0.10); }
}

.tejcart-single-product-short-description {
    color: var(--tejcart-text-muted);
    font-size: var(--tejcart-font-size-base);
    line-height: var(--tejcart-line-height-relaxed, 1.65);
    margin: calc(var(--tejcart-space-1) * -1) 0 0;
    max-width: 60ch;
}

.tejcart-single-product-short-description p {
    margin: 0 0 var(--tejcart-space-2);
}

.tejcart-single-product-short-description p:last-child {
    margin-bottom: 0;
}

.tejcart-single-product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-3);
    margin-top: var(--tejcart-space-5);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tejcart-single-product-buy-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--tejcart-space-2);
}

@media (max-width: 599px) {
    .tejcart-single-product {
        padding: var(--tejcart-space-4) var(--tejcart-space-3);
    }

    .tejcart-single-product-title {
        font-size: clamp(20px, 5vw, 24px);
    }

    .tejcart-single-product-price .tejcart-price-sale,
    .tejcart-single-product-price .tejcart-price {
        font-size: clamp(18px, 5vw, 22px);
    }

    .tejcart-single-product-buy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tejcart-single-product-buy-row .tejcart-add-to-cart-btn,
    .tejcart-single-product-buy-row .tejcart-button {
        width: 100%;
    }

    .tejcart-single-product-media .tejcart-gallery-thumbnails {
        gap: var(--tejcart-space-2);
    }

    .tejcart-single-product-media .tejcart-gallery-thumb {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 380px) {
    .tejcart-single-product {
        padding: var(--tejcart-space-3) var(--tejcart-space-2);
    }
    .tejcart-single-product-back a {
        padding: 5px 10px;
        font-size: 12px;
    }
    .tejcart-variation-select {
        padding: 8px 10px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .tejcart-single-product-actions .tejcart-add-to-cart-btn,
    .tejcart-single-product-buy-row .tejcart-add-to-cart-btn,
    .tejcart-single-product-sticky-cta-btn { min-height: 48px; }
    .tejcart-variation-select { min-height: 44px; }
    .tejcart-single-product-media .tejcart-gallery-thumb { min-width: 44px; min-height: 44px; }
}

.tejcart-variations {
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-3);
    position: relative;
}

.tejcart-variation-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tejcart-variation-label {
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
}

.tejcart-variation-clear {
    appearance: none;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--tejcart-text-muted);
    font-size: 12px;
    font-weight: var(--tejcart-font-weight-medium);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    line-height: 1.4;
}

.tejcart-variation-clear::before {
    content: "\00d7";
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transform: translateY(-1px);
}

.tejcart-variation-clear:hover,
.tejcart-variation-clear:focus-visible {
    color: var(--tejcart-text);
    text-decoration: underline;
    outline: none;
}

.tejcart-variation-clear[hidden] {
    display: none;
}

.tejcart-variation-select {
    width: 100%;
    padding: 6px 12px;
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-regular);
    line-height: 1.4;
    border: 1px solid var(--tejcart-border);
    border-radius: var(--tejcart-radius-sm, 4px);
    background-color: var(--tejcart-bg-surface);
    color: var(--tejcart-text);
    cursor: pointer;
    transition:
        border-color var(--tejcart-duration-base) var(--tejcart-ease),
        box-shadow var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-variation-select:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--tejcart-border-focus);
    box-shadow: var(--tejcart-shadow-focus);
}

.tejcart-variation-error {
    margin: var(--tejcart-space-1) 0 0;
    padding: 8px 12px;
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-medium);
    color: var(--tejcart-color-danger, #c0392b);
    background: rgba(215, 44, 13, 0.06);
    border-left: 3px solid var(--tejcart-color-danger, #c0392b);
    border-radius: var(--tejcart-radius-sm);
}

.tejcart-variation-price {
    margin: 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.tejcart-variation-price[hidden] {
    display: none;
}

.tejcart-bundle-contents {
    margin: var(--tejcart-space-2) 0;
    padding: var(--tejcart-space-2);
    background-color: var(--tejcart-color-surface-alt, #f6f7f9);
    border-radius: var(--tejcart-radius-sm, 6px);
}

.tejcart-bundle-contents-title {
    margin: 0 0 var(--tejcart-space-1);
    font-size: var(--tejcart-font-size-sm, 0.95rem);
    font-weight: 600;
}

.tejcart-bundle-contents-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.25rem;
}

.tejcart-bundle-contents-item {
    display: flex;
    justify-content: space-between;
    gap: var(--tejcart-space-2);
    margin: 4px 0;
}

.tejcart-bundle-contents-qty {
    color: var(--tejcart-color-muted, #6b7280);
    font-weight: 500;
    margin-left: 4px;
}

.tejcart-bundle-contents-discount {
    color: var(--tejcart-color-success, #0f7a4f);
    font-weight: 600;
    font-size: var(--tejcart-font-size-sm, 0.875rem);
}

.tejcart-sale-ends {
    margin: 0;
    font-size: var(--tejcart-font-size-sm, 0.875rem);
    color: var(--tejcart-color-danger, #c0392b);
    font-weight: 500;
}

.tejcart-single-product-buy-row {
    --tejcart-buy-row-height: 50px;
    flex-direction: column;
    align-items: stretch;
    gap: var(--tejcart-space-3);
}

@media (min-width: 600px) {
    .tejcart-single-product-buy-row {
        flex-direction: row;
        align-items: center;
    }
}

.tejcart-single-product-qty {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 6px;
    flex: 0 0 auto;
}

.tejcart-single-product-qty .tejcart-single-product-qty-label {
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    line-height: 1.2;
    margin: 0;
}

.tejcart-single-product-qty .tejcart-qty-stepper {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    height: 44px;
    border: 1px solid var(--tejcart-border);
    border-radius: var(--tejcart-radius-md, 8px);
    background: var(--tejcart-bg-surface);
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    transition:
        border-color var(--tejcart-duration-base) var(--tejcart-ease),
        box-shadow var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-single-product-qty .tejcart-qty-stepper:hover,
.tejcart-single-product-qty .tejcart-qty-stepper:focus-within {
    border-color: var(--tejcart-border-strong);
}

.tejcart-single-product-qty .tejcart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 42px;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--tejcart-text);
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-single-product-qty .tejcart-qty-btn:hover,
.tejcart-single-product-qty .tejcart-qty-btn:focus-visible {
    background: var(--tejcart-accent-soft);
    color: var(--tejcart-text);
}

.tejcart-single-product-qty .tejcart-qty-btn:focus-visible {
    outline: 2px solid transparent;
    outline-offset: -2px;
    box-shadow: inset 0 0 0 2px var(--tejcart-border-focus);
}

.tejcart-single-product-qty .tejcart-qty-btn svg {
    width: 14px;
    height: 14px;
    display: block;
    pointer-events: none;
    fill: none;
    stroke: currentColor;
}

.tejcart-single-product-qty .tejcart-qty-input {
    width: 44px;
    min-width: 44px;
    height: 42px;
    padding: 0;
    margin: 0;
    border: none;
    border-left: 1px solid var(--tejcart-border);
    border-right: 1px solid var(--tejcart-border);
    border-radius: 0;
    background: transparent;
    color: var(--tejcart-text);
    font-family: var(--tejcart-font-numeric);
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-medium);
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1;
    box-shadow: none;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}

.tejcart-single-product-qty .tejcart-qty-input::-webkit-outer-spin-button,
.tejcart-single-product-qty .tejcart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    width: 0;
    height: 0;
    display: none;
    visibility: hidden;
}

.tejcart-single-product-qty .tejcart-qty-input:focus-visible {
    outline: 2px solid transparent;
    outline-offset: -2px;
    box-shadow: inset 0 0 0 2px var(--tejcart-border-focus);
}

.tejcart-single-product-actions .tejcart-button,
.tejcart-single-product-actions .tejcart-add-to-cart-btn {
    width: 100%;
    min-height: 50px;
    padding: 0 var(--tejcart-space-4);
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-bold);
    border-radius: var(--tejcart-radius-md, 8px);
    letter-spacing: 0;
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    box-shadow: none;
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        box-shadow var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-single-product-buy-row .tejcart-button,
.tejcart-single-product-buy-row .tejcart-add-to-cart-btn {
    width: auto;
    flex: 0 1 auto;
    height: var(--tejcart-buy-row-height, 44px);
    min-height: var(--tejcart-buy-row-height, 44px);
    padding: 0 var(--tejcart-space-5);
}

.tejcart-single-product-actions .tejcart-button:hover,
.tejcart-single-product-actions .tejcart-add-to-cart-btn:hover {
    transform: none;
    box-shadow: none;
    background: var(--tejcart-accent-active, var(--tejcart-accent));
}

.tejcart-single-product-actions .tejcart-button:focus-visible,
.tejcart-single-product-actions .tejcart-add-to-cart-btn:focus-visible {
    outline: none;
    box-shadow: var(--tejcart-shadow-focus), 0 4px 12px -2px rgba(17, 24, 39, 0.18);
}

.tejcart-single-product-actions .tejcart-button:active,
.tejcart-single-product-actions .tejcart-add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: var(--tejcart-shadow-subtle);
}

.tejcart-single-product-actions .tejcart-button.is-disabled:not([disabled]),
.tejcart-single-product-actions .tejcart-add-to-cart-btn.is-disabled:not([disabled]) {
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    border-color: transparent;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.tejcart-single-product-actions .tejcart-product-smart-buttons {
    width: 100%;
    margin-top: 0;
    position: relative;
    padding-top: 0;
}

.tejcart-single-product-actions .tejcart-product-smart-buttons::before,
.tejcart-single-product-actions .tejcart-product-smart-buttons::after {
    content: none;
}

.tejcart-single-product-actions .tejcart-product-smart-buttons > div[id^="tejcart-product-"] {
    width: 100%;
    min-height: 50px;
    border-radius: var(--tejcart-radius-md, 8px);
    overflow: hidden;
}

.tejcart-single-product-actions .tejcart-paylater-message:empty {
    display: none;
}

.tejcart-single-product-info {
    margin: var(--tejcart-space-2) 0 0;
    background: var(--tejcart-bg-surface);
    border: 1px solid var(--tejcart-border);
    border-radius: var(--tejcart-radius-xl);
    overflow: hidden;
}

.tejcart-single-product-info-panel {
    border-bottom: 1px solid var(--tejcart-border-subtle);
}

.tejcart-single-product-info-panel:last-child {
    border-bottom: 0;
}

.tejcart-single-product-info-panel > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tejcart-space-3);
    padding: var(--tejcart-space-4) var(--tejcart-space-4);
    cursor: pointer;
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    letter-spacing: var(--tejcart-letter-spacing-tight);
    user-select: none;
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-single-product-info-panel[open] > summary {
    background: var(--tejcart-bg-surface-alt);
}

.tejcart-single-product-info-panel > summary::-webkit-details-marker {
    display: none;
}

.tejcart-single-product-info-panel > summary:hover,
.tejcart-single-product-info-panel > summary:focus-visible {
    color: var(--tejcart-text-link-hover);
    outline: none;
}

.tejcart-single-product-info-summary-label {
    display: inline-flex;
    align-items: center;
    gap: var(--tejcart-space-3);
    min-width: 0;
}

.tejcart-single-product-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--tejcart-text);
    background: var(--tejcart-bg-surface-alt);
    border: 1px solid var(--tejcart-border-subtle);
    border-radius: 50%;
    flex-shrink: 0;
}

.tejcart-single-product-info-icon svg {
    width: 18px;
    height: 18px;
}

.tejcart-single-product-info-chevron {
    width: 14px;
    height: 14px;
    color: var(--tejcart-text-muted);
    transition: transform var(--tejcart-duration-base) var(--tejcart-ease);
    flex-shrink: 0;
}

.tejcart-single-product-info-panel[open] > summary .tejcart-single-product-info-chevron {
    transform: rotate(180deg);
}

.tejcart-single-product-info-body {
    padding: 0 var(--tejcart-space-4) var(--tejcart-space-4) calc(var(--tejcart-space-4) + 36px + var(--tejcart-space-3));
    color: var(--tejcart-text-muted);
    font-size: var(--tejcart-font-size-sm);
    line-height: var(--tejcart-line-height-relaxed, 1.65);
}

.tejcart-single-product-info-body p {
    margin: 0 0 var(--tejcart-space-2);
}

.tejcart-single-product-info-body p:last-child {
    margin-bottom: 0;
}

.tejcart-single-product-meta {
    margin: 0;
    padding-top: var(--tejcart-space-4);
    border-top: 1px solid var(--tejcart-border-subtle);
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px var(--tejcart-space-4);
    align-items: center;
    line-height: 1.5;
}

.tejcart-single-product-meta + .tejcart-single-product-meta {
    padding-top: 0;
    border-top: 0;
}

.tejcart-single-product-meta .tejcart-meta-label {
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    text-transform: none;
    font-size: var(--tejcart-font-size-sm);
    letter-spacing: 0;
    margin-right: 4px;
}

.tejcart-single-product-meta .tejcart-meta-value {
    color: var(--tejcart-text);
}

.tejcart-single-product-meta .tejcart-meta-value a {
    color: var(--tejcart-accent);
    text-decoration: none;
}

.tejcart-single-product-meta .tejcart-meta-value a:hover,
.tejcart-single-product-meta .tejcart-meta-value a:focus-visible {
    text-decoration: underline;
}

.tejcart-single-product-meta .tejcart-meta-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: var(--tejcart-space-3);
}

.tejcart-single-product-meta .tejcart-meta-group:last-child {
    margin-right: 0;
}

.tejcart-single-product-description,
.tejcart-single-product-additional-info {
    margin-top: var(--tejcart-space-8, 48px);
    padding-top: var(--tejcart-space-6);
    border-top: 1px solid var(--tejcart-border-subtle);
}

.tejcart-product-attributes {
    display: grid;
    grid-template-columns: minmax(160px, max-content) 1fr;
    gap: 0;
    margin: 0;
    max-width: 720px;
    font-size: var(--tejcart-font-size-base);
    background: var(--tejcart-bg-surface);
    border: 1px solid var(--tejcart-border);
    border-radius: var(--tejcart-radius-lg);
    overflow: hidden;
}

.tejcart-product-attributes dt,
.tejcart-product-attributes dd {
    padding: var(--tejcart-space-3) var(--tejcart-space-4);
    border-bottom: 1px solid var(--tejcart-border-subtle);
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0;
}

.tejcart-product-attributes dt {
    color: var(--tejcart-text-muted);
    font-weight: var(--tejcart-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: var(--tejcart-font-size-xs);
    background: var(--tejcart-bg-surface-alt);
}

.tejcart-product-attributes dd {
    color: var(--tejcart-text);
    font-weight: var(--tejcart-font-weight-medium);
    background: var(--tejcart-bg-surface);
}

.tejcart-product-attributes dt:last-of-type,
.tejcart-product-attributes dd:last-of-type {
    border-bottom: none;
}

.tejcart-single-product-section-title {
    font-size: var(--tejcart-font-size-sm, 13px);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text-muted);
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 var(--tejcart-space-4);
    padding-bottom: var(--tejcart-space-2);
    border-bottom: 1px solid var(--tejcart-border-subtle);
}

.tejcart-single-product-description-body {
    color: var(--tejcart-text);
    font-size: var(--tejcart-font-size-md, 16px);
    line-height: var(--tejcart-line-height-relaxed, 1.75);
    max-width: 72ch;
}

.tejcart-single-product-description-body p {
    margin: 0 0 var(--tejcart-space-3);
}

.tejcart-single-product-description-body p:last-child {
    margin-bottom: 0;
}

.tejcart-single-product-tabs {
    margin-top: var(--tejcart-space-9, 48px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 599px) {
    .tejcart-single-product-tabs {
        padding: 0;
    }
}

.tejcart-single-product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tejcart-space-6, 32px);
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--tejcart-border-subtle);

    margin-bottom: var(--tejcart-space-4, 16px);
    align-self: stretch;
    width: 100%;
    max-width: none;
}

.tejcart-single-product-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin: 0 0 -1px;
    padding: var(--tejcart-space-3) 0;
    font-family: inherit;
    font-size: var(--tejcart-font-size-base);
    font-weight: var(--tejcart-font-weight-bold);
    letter-spacing: 0;
    text-transform: none;
    color: var(--tejcart-text-muted);
    border-radius: 0;
    cursor: pointer;
    transition:
        color var(--tejcart-duration-base) var(--tejcart-ease),
        border-color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-single-product-tab:hover,
.tejcart-single-product-tab:focus-visible {
    color: var(--tejcart-accent);
    background: transparent;
    box-shadow: none;
}

.tejcart-single-product-tab:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--tejcart-shadow-focus);
}

.tejcart-single-product-tab.is-active,
.tejcart-single-product-tab[aria-selected="true"] {
    color: var(--tejcart-text);
    background: transparent;
    border-bottom-color: var(--tejcart-accent);
    box-shadow: none;
}

.tejcart-single-product-tab-panel {
    padding-top: 0;
    color: var(--tejcart-text);
    line-height: var(--tejcart-line-height-relaxed, 1.65);
}

.tejcart-single-product-tab-panel[hidden] {
    display: none;
}

.tejcart-single-product-tab-panel + .tejcart-single-product-tab-panel {
    margin-top: var(--tejcart-space-6, 32px);
    padding-top: var(--tejcart-space-5, 24px);
    border-top: 1px solid var(--tejcart-border-subtle);
}

.tejcart-single-product-tabs.is-enhanced .tejcart-single-product-tab-panel + .tejcart-single-product-tab-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tejcart-single-product ~ .tejcart-related-products,
.tejcart-single-product .tejcart-related-products {
    margin-top: var(--tejcart-space-10, 64px);
    padding-top: 0;
    border-top: 0;
}

.tejcart-single-product .tejcart-related-products-title {
    position: relative;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    letter-spacing: 0;
    text-align: left;
    margin: 0 0 var(--tejcart-space-6);
    padding-bottom: 0;
}

.tejcart-single-product .tejcart-related-products-title::after {
    content: none;
}

.tejcart-related-products .tejcart-product-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.tejcart-related-products .tejcart-product-box:hover,
.tejcart-related-products .tejcart-product-box:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.tejcart-related-products .tejcart-product-box-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--tejcart-radius-lg);
    border: 1px solid var(--tejcart-border-subtle);
    background: var(--tejcart-bg-surface-alt);
    overflow: hidden;
    transition:
        transform var(--tejcart-duration-base) var(--tejcart-ease),
        box-shadow var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-related-products .tejcart-product-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tejcart-related-products .tejcart-product-box:hover .tejcart-product-box-image {
    transform: translateY(-2px);
    box-shadow: var(--tejcart-shadow-medium);
}

.tejcart-related-products .tejcart-product-box-description {
    display: none;
}

.tejcart-related-products .tejcart-product-box-content {
    padding: var(--tejcart-space-3) 0 0;
    gap: 6px;
}

.tejcart-related-products .tejcart-product-box-name {
    font-size: var(--tejcart-font-size-md);
    font-weight: var(--tejcart-font-weight-bold);
}

.tejcart-related-products .tejcart-product-box-price {
    margin-top: 0;
}

.tejcart-related-products .tejcart-product-box-actions {
    margin-top: var(--tejcart-space-2);
}

.tejcart-related-products .tejcart-product-box-actions .tejcart-button,
.tejcart-related-products .tejcart-product-box-actions .tejcart-add-to-cart-btn {
    width: 100%;
    align-self: stretch;
    min-height: 42px;
    padding: 0 var(--tejcart-space-4);
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-bold);
    border-radius: var(--tejcart-radius-md, 8px);
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    box-shadow: none;
}

.tejcart-related-products .tejcart-product-box-price .tejcart-price,
.tejcart-related-products .tejcart-product-box-price .tejcart-price-sale {
    color: var(--tejcart-text);
    font-weight: var(--tejcart-font-weight-bold);
}

.tejcart-related-products .tejcart-product-box-price .tejcart-price-sale {
    color: var(--tejcart-sale-accent);
}

.tejcart-related-products .tejcart-product-box-price .tejcart-price-regular {
    display: none;
}

@media (min-width: 600px) {
    .tejcart-related-products
        .tejcart-product-grid:has(> .tejcart-product-box:nth-child(2):last-child) {
        max-width: 760px;
        margin-inline-start: 0;
        margin-inline-end: auto;
    }

    .tejcart-related-products
        .tejcart-product-grid:has(> .tejcart-product-box:nth-child(1):last-child) {
        max-width: 380px;
        margin-inline-start: 0;
        margin-inline-end: auto;
    }
}

@media (max-width: 599px) {
    .tejcart-related-products .tejcart-product-grid {
        display: flex;
        grid-template-columns: none;
        gap: var(--tejcart-space-3);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--tejcart-space-3);
        scroll-padding: var(--tejcart-space-4);
    }

    .tejcart-related-products .tejcart-product-grid > .tejcart-product-box {
        flex: 0 0 calc(50% - var(--tejcart-space-2));
        max-width: calc(50% - var(--tejcart-space-2));
        scroll-snap-align: start;
    }
}

.tejcart-single-product-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    gap: var(--tejcart-space-3);
    padding: var(--tejcart-space-3) var(--tejcart-space-4) calc(var(--tejcart-space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--tejcart-bg-surface);
    border-top: 1px solid var(--tejcart-border);
    box-shadow: var(--tejcart-shadow-elevated-up);
    z-index: var(--tejcart-z-sticky);
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition:
        transform var(--tejcart-duration-base) var(--tejcart-ease),
        visibility 0s linear var(--tejcart-duration-base);
}

.tejcart-single-product-sticky-cta.is-visible {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        transform var(--tejcart-duration-base) var(--tejcart-ease),
        visibility 0s linear 0s;
}

.tejcart-single-product-sticky-cta-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--tejcart-space-1);
}

.tejcart-single-product-sticky-cta-name {
    font-size: var(--tejcart-font-size-sm);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.tejcart-single-product-sticky-cta-price {
    font-size: var(--tejcart-font-size-md);
    font-weight: var(--tejcart-font-weight-bold);
    color: var(--tejcart-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.tejcart-single-product-sticky-cta-btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 var(--tejcart-space-6);
    border-radius: var(--tejcart-radius-pill);
    font-weight: var(--tejcart-font-weight-bold);
    background: var(--tejcart-accent);
    color: var(--tejcart-accent-foreground);
    border: 0;
}

@media (max-width: 767px) {
    .tejcart-single-product-sticky-cta {
        display: flex;
    }
}

.tejcart-stock-pill--backorder {
    background: var(--tejcart-backorder-bg);
    color: var(--tejcart-backorder-fg);
    border: 1px solid var(--tejcart-backorder-border);
    margin-top: var(--tejcart-space-1);
}

.tejcart-stock-pill--in {
    background: var(--tejcart-success-bg);
    color: var(--tejcart-success-fg);
    border: 1px solid var(--tejcart-success-border);
}

.tejcart-qty-hint {
    margin: var(--tejcart-space-1) 0 0;
    font-size: var(--tejcart-font-size-xs);
    color: var(--tejcart-text-muted);
    font-style: italic;
}

.tejcart-single-product-qty .tejcart-qty-hint {
    align-self: flex-start;
    margin: 0;
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    font-style: normal;
}
.tejcart-qty-hint--individual {
    color: var(--tejcart-backorder-fg);
}

.tejcart-featured-badge {
    display: inline-block;
    background: var(--tejcart-featured-bg);
    color: var(--tejcart-featured-fg);
    border: 1px solid var(--tejcart-featured-border);
    padding: 2px var(--tejcart-space-2);
    border-radius: var(--tejcart-radius-pill);
    font-size: var(--tejcart-font-size-tiny);
    font-weight: var(--tejcart-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    box-shadow: var(--tejcart-shadow-xs);
}
.tejcart-product-box-image .tejcart-featured-badge,
.tejcart-gallery-main .tejcart-gallery-featured-badge {
    position: absolute;
    top: var(--tejcart-space-3);
    right: var(--tejcart-space-3);
    z-index: var(--tejcart-z-raised, 2);
    box-shadow: var(--tejcart-shadow-pill);
}

.tejcart-gallery-main .tejcart-gallery-featured-badge {
    right: calc(var(--tejcart-space-3) + 40px + var(--tejcart-space-2));
    padding: 4px 10px;
    border-radius: var(--tejcart-radius-pill);
    font-size: 11px;
    letter-spacing: 0.06em;
    max-width: calc(100% - 40px - var(--tejcart-space-3) * 2 - var(--tejcart-space-2));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tejcart-single-product-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--tejcart-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tejcart-single-product-trust-item {
    display: flex;
    align-items: center;
    gap: var(--tejcart-space-2);
    padding: var(--tejcart-space-2) var(--tejcart-space-3);
    background: var(--tejcart-bg-surface-alt);
    border: 1px solid var(--tejcart-border-subtle);
    border-radius: var(--tejcart-radius-md);
    font-size: var(--tejcart-font-size-xs);
    font-weight: var(--tejcart-font-weight-semibold);
    color: var(--tejcart-text);
    line-height: 1.3;
}

.tejcart-single-product-trust-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--tejcart-success-fg, #0c5132);
}

.tejcart-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: var(--tejcart-space-2);
    margin: 0;
    padding: 6px 12px 6px 10px;
    background: var(--tejcart-bg-surface-alt);
    border: 1px solid var(--tejcart-border-subtle);
    border-radius: var(--tejcart-radius-pill);
    color: inherit;
    text-decoration: none;
    align-self: flex-start;
    transition:
        background var(--tejcart-duration-base) var(--tejcart-ease),
        border-color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-rating-summary:hover,
.tejcart-rating-summary:focus-visible {
    background: var(--tejcart-bg-surface);
    border-color: var(--tejcart-border-strong);
    text-decoration: none;
    outline: none;
}

.tejcart-rating-summary .tejcart-star {
    font-size: var(--tejcart-font-size-base);
}

.tejcart-rating-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--tejcart-font-size-sm);
    color: var(--tejcart-text-muted);
    font-variant-numeric: tabular-nums;
}

.tejcart-rating-summary-average {
    color: var(--tejcart-text);
    font-weight: var(--tejcart-font-weight-semibold);
}

.tejcart-rating-summary-count {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.18em;
    transition: text-decoration-color var(--tejcart-duration-base) var(--tejcart-ease);
}

.tejcart-rating-summary:hover .tejcart-rating-summary-count,
.tejcart-rating-summary:focus-visible .tejcart-rating-summary-count {
    text-decoration-color: currentColor;
}

.tejcart-single-product-brand {
    display: inline;
    padding: 0;
    background: transparent;
    color: var(--tejcart-text-muted);
    border-radius: 0;
    font-size: var(--tejcart-font-size-base);
    text-transform: none;
    letter-spacing: 0;
    font-weight: var(--tejcart-font-weight-regular);
    line-height: 1.4;
}

.tejcart-single-product-brand a {
    color: inherit;
    text-decoration: none;
    transition: color var(--tejcart-duration-fast) var(--tejcart-ease);
}

.tejcart-single-product-brand a:hover,
.tejcart-single-product-brand a:focus-visible {
    color: var(--tejcart-accent);
    text-decoration: none;
    outline: none;
}

.tejcart-single-product-tags .tejcart-meta-value a {
    text-decoration: none;
    margin-right: var(--tejcart-space-1);
    color: var(--tejcart-accent);
    text-underline-offset: 0.18em;
    transition: color var(--tejcart-duration-fast) var(--tejcart-ease);
}
.tejcart-single-product-tags .tejcart-meta-value a:hover,
.tejcart-single-product-tags .tejcart-meta-value a:focus-visible {
    text-decoration: underline;
}

.tejcart-cart-item-backorder,
.tejcart-cart-drawer-item-backorder {
    display: inline-block;
    margin: var(--tejcart-space-1) 0 0;
    padding: 2px var(--tejcart-space-2);
    background: var(--tejcart-backorder-bg);
    color: var(--tejcart-backorder-fg);
    border: 1px solid var(--tejcart-backorder-border);
    border-radius: var(--tejcart-radius-pill);
    font-size: var(--tejcart-font-size-tiny);
    font-weight: var(--tejcart-font-weight-semibold);
    line-height: 1.5;
}

.tejcart-product-grid,
.tejcart-shop-meta,
.tejcart-pagination {
    --tejcart-shop-accent: var(--tejcart-accent);
    --tejcart-shop-accent-hover: var(--tejcart-accent-hover);
    --tejcart-shop-accent-foreground: var(--tejcart-accent-foreground);
    --tejcart-shop-image-bg: var(--tejcart-bg-surface-alt);
    --tejcart-shop-text: var(--tejcart-text);
    --tejcart-shop-text-muted: var(--tejcart-text-muted);
    --tejcart-shop-border: var(--tejcart-border);
}

.tejcart-breadcrumbs + .tejcart-shop-meta {
    margin-top: var(--tejcart-space-4);
}

.tejcart-shop-meta {
    margin: 0 0 var(--tejcart-space-6);
    align-items: center;
}

.tejcart-shop-meta-count {
    font-size: 15px;
    font-weight: 400;
    color: var(--tejcart-shop-text);
    text-transform: none;
    letter-spacing: 0;
}

.tejcart-shop-meta .tejcart-product-sort {
    position: relative;
}

.tejcart-shop-meta .tejcart-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 6px 28px 6px 0;
    font-size: 15px;
    color: var(--tejcart-shop-text);

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%233a3a3a' stroke-width='1.5'><path d='M3 4.5l3 3 3-3'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px 12px;
}

.tejcart-shop-meta .tejcart-sort-select:focus {
    outline: 2px solid var(--tejcart-shop-accent);
    outline-offset: 2px;
}

.tejcart-product-grid {
    gap: var(--tejcart-space-7);
}

.tejcart-product-grid .tejcart-product-box {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.tejcart-product-grid .tejcart-product-box:hover,
.tejcart-product-grid .tejcart-product-box:focus-within {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.tejcart-product-grid .tejcart-product-box-image {
    background: var(--tejcart-shop-image-bg);
    border-radius: 0;
}

.tejcart-product-grid .tejcart-product-box-image::after {
    display: none;
}

.tejcart-product-grid .tejcart-product-box:hover .tejcart-product-box-image img {
    transform: none;
}

.tejcart-product-grid .tejcart-sale-badge {
    top: 12px;
    left: 12px;
    right: auto;
    background: #ffffff;
    color: var(--tejcart-shop-text);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tejcart-product-grid .tejcart-stock-pill {
    top: 12px;
    left: auto;
    right: 12px;
}

.tejcart-product-grid .tejcart-featured-badge {
    top: auto;
    right: auto;
    bottom: 12px;
    left: 12px;
    background: #ffffff;
    color: var(--tejcart-shop-text);
    border: 0;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tejcart-product-grid .tejcart-product-box-content {
    padding: var(--tejcart-space-3) 0 0;
    gap: 8px;
    align-items: flex-start;
}

.tejcart-product-grid .tejcart-product-box-category {
    font-size: 13px;
    color: var(--tejcart-shop-text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

.tejcart-product-grid .tejcart-product-box-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--tejcart-shop-text);
    line-height: 1.3;
    letter-spacing: 0;
    -webkit-line-clamp: 2;
    margin: 0;
}

.tejcart-product-grid .tejcart-product-box-name a {
    color: inherit;
    text-decoration: none;
}

.tejcart-product-grid .tejcart-product-box-name a:hover,
.tejcart-product-grid .tejcart-product-box-name a:focus-visible {
    color: var(--tejcart-shop-accent);
    text-decoration: none;
}

.tejcart-product-grid .tejcart-product-box-description {
    display: none;
}

.tejcart-product-grid .tejcart-product-box-price {
    font-size: 15px;
    gap: 6px;
    margin-top: 0;
}

.tejcart-product-grid .tejcart-product-box-price .tejcart-price-regular {
    order: 1;
    color: var(--tejcart-shop-text-muted);
    font-size: 14px;
    font-weight: 400;
}

.tejcart-product-grid .tejcart-product-box-price .tejcart-price-sale {
    order: 2;
}

.tejcart-product-grid .tejcart-product-box-price .tejcart-price-sale,
.tejcart-product-grid .tejcart-product-box-price .tejcart-price {
    color: var(--tejcart-shop-text);
    font-weight: 700;
    font-size: 15px;
}

.tejcart-product-grid .tejcart-product-box-actions {
    margin-top: auto;
    padding-top: var(--tejcart-space-3);
    align-items: flex-start;
}

.tejcart-product-grid .tejcart-product-box-actions .tejcart-button {
    width: auto;
    min-height: 0;
    display: inline-flex;
    padding: 9px 18px;
    background: var(--tejcart-shop-accent);
    color: var(--tejcart-shop-accent-foreground);
    border: 1px solid var(--tejcart-shop-accent);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transform: none;
    text-decoration: none;
}

.tejcart-product-grid .tejcart-product-box-actions .tejcart-button:hover,
.tejcart-product-grid .tejcart-product-box-actions .tejcart-button:focus-visible {
    background: var(--tejcart-shop-accent-hover);
    border-color: var(--tejcart-shop-accent-hover);
    color: var(--tejcart-shop-accent-foreground);
    box-shadow: none;
    transform: none;
}

.tejcart-product-grid .tejcart-product-box.is-out-of-stock .tejcart-button {
    background: var(--tejcart-shop-accent);
    color: var(--tejcart-shop-accent-foreground);
    opacity: 0.55;
}

.tejcart-pagination {
    justify-content: flex-start;
    margin-top: var(--tejcart-space-7);
}

.tejcart-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--tejcart-shop-accent);
    border-radius: 2px;
    background: var(--tejcart-bg-surface);
    color: var(--tejcart-shop-accent);
    font-size: 14px;
    font-weight: 400;
}

.tejcart-pagination a.page-numbers:hover,
.tejcart-pagination a.page-numbers:focus-visible {
    background: var(--tejcart-shop-accent);
    border-color: var(--tejcart-shop-accent);
    color: var(--tejcart-shop-accent-foreground);
    box-shadow: none;
}

.tejcart-pagination .page-numbers.current {
    background: var(--tejcart-shop-accent);
    border-color: var(--tejcart-shop-accent);
    color: var(--tejcart-shop-accent-foreground);
    font-weight: 600;
}

.tejcart-pagination .page-numbers.dots {
    border-color: transparent;
    color: var(--tejcart-shop-text-muted);
    background: transparent;
}

.tejcart-pagination .page-numbers.prev,
.tejcart-pagination .page-numbers.next {
    padding: 0 10px;
    font-weight: 400;
}

@media (max-width: 599px) {
    .tejcart-product-grid {
        gap: var(--tejcart-space-4) var(--tejcart-space-3);
    }
    .tejcart-product-grid .tejcart-product-box-content {
        padding: var(--tejcart-space-3) 0 0;
        gap: 6px;
    }
    .tejcart-product-grid .tejcart-product-box-name {
        font-size: 16px;
        line-height: 1.35;
    }
    .tejcart-product-grid .tejcart-product-box-price {
        font-size: 16px;
    }
    .tejcart-product-grid .tejcart-product-box-price .tejcart-price-sale,
    .tejcart-product-grid .tejcart-product-box-price .tejcart-price {
        font-size: 16px;
    }
    .tejcart-product-grid .tejcart-product-box-actions {
        align-items: stretch;
        width: 100%;
    }
    .tejcart-product-grid .tejcart-product-box-actions .tejcart-button {
        width: 100%;
        min-height: var(--tejcart-touch-target);
        padding: 0 var(--tejcart-space-3);
        justify-content: center;
        text-align: center;
        font-size: 14px;
    }
    .tejcart-product-grid .tejcart-sale-badge {
        top: 8px;
        left: 8px;
        right: auto;
        padding: 4px 10px;
        font-size: 12px;
    }
    .tejcart-product-grid .tejcart-featured-badge {
        bottom: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 12px;
    }
    .tejcart-product-grid .tejcart-stock-pill {
        top: 8px;
        right: 8px;
        left: auto;
    }
}

@media (max-width: 380px) {
    .tejcart-product-grid {
        gap: var(--tejcart-space-3);
    }
    .tejcart-product-box {
        padding: var(--tejcart-space-1);
    }
    .tejcart-product-box-content {
        padding: var(--tejcart-space-2) 2px 2px;
    }
    .tejcart-product-box-name {
        font-size: var(--tejcart-font-size-sm);
    }
    .tejcart-shop-meta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--tejcart-space-2);
    }
    .tejcart-shop-meta .tejcart-product-sort,
    .tejcart-shop-meta .tejcart-sort-select {
        margin-left: 0;
        width: 100%;
    }
    .tejcart-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 13px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .tejcart-pagination .page-numbers { min-height: 44px; min-width: 44px; }
    .tejcart-shop-meta .tejcart-sort-select { min-height: 44px; }
}
