/* Versioned new-arrivals styles: keep the filename in sync with the template. */
.latest-pieces-page {
    --page: var(--cv-page);
    --paper: var(--cv-paper);
    --ink: var(--cv-ink);
    --muted: var(--cv-muted);
    --line: var(--cv-line);
    --soft: var(--cv-soft);
    --accent: var(--cv-accent);
    --radius: var(--cv-radius);
    background: var(--cv-page);
    color: var(--cv-ink);
    font-family: var(--cv-font-family);
}

.latest-pieces-page .arrival-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    width: min(100% - 40px, 1320px);
    min-height: 540px;
    margin: 24px auto 0;
    overflow: hidden;
    background: var(--cv-paper);
}

.latest-pieces-page .arrival-hero-copy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(42px, 7vw, 96px);
}

.latest-pieces-page .arrival-hero-copy h1 {
    margin: 18px 0 24px;
    color: var(--cv-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 7vw, 104px) !important;
    font-weight: 400 !important;
    line-height: .9 !important;
    letter-spacing: -.055em !important;
}

.latest-pieces-page .arrival-hero-copy p {
    max-width: 590px;
    margin: 0;
    color: var(--cv-muted) !important;
    font-size: 15px;
    line-height: 1.75;
}

.latest-pieces-page .arrival-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.latest-pieces-page .arrival-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--cv-primary);
    padding-bottom: 8px;
    color: var(--cv-primary);
    font-size: 12px;
    font-weight: 700;
}

.latest-pieces-page .arrival-links a:last-child {
    border-color: transparent;
    color: var(--cv-muted);
}

.latest-pieces-page .arrival-hero-mark {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding: 34px;
    background: var(--cv-forest);
    color: var(--cv-paper);
}

.latest-pieces-page .arrival-hero-mark span,
.latest-pieces-page .arrival-hero-mark em {
    align-self: flex-start;
    font-size: 10px;
    font-style: normal;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.latest-pieces-page .arrival-hero-mark strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(92px, 12vw, 180px);
    font-weight: 400;
    letter-spacing: -.08em;
}

.latest-pieces-page .arrival-hero-mark em {
    align-self: flex-end;
}

.latest-pieces-page .collection-switcher {
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: center;
    gap: 24px;
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
    border-bottom: 1px solid var(--cv-line);
    padding: 28px 0;
}

.latest-pieces-page .collection-switcher > span {
    color: var(--cv-muted);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.latest-pieces-page .collection-switcher > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.latest-pieces-page .collection-switcher a {
    border: 1px solid var(--cv-line);
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--cv-paper);
    color: var(--cv-ink);
    font-size: 12px;
    transition: .2s ease;
}

.latest-pieces-page .collection-switcher a:hover {
    border-color: var(--cv-primary);
    background: var(--cv-warm-translucent);
    color: var(--cv-primary);
}

.latest-pieces-page .main-header {
    background: var(--cv-header-bg);
    border-bottom: var(--cv-border-width) solid var(--cv-line);
    box-shadow: none;
}

.latest-pieces-page .logo,
.latest-pieces-page .cart-icon,
.latest-pieces-page .account-icon {
    color: var(--cv-header-text);
}

.latest-pieces-page .search-form input,
.latest-pieces-page .md-form-input {
    border: 0;
    border-radius: var(--cv-input-radius);
    background: var(--cv-soft);
    color: var(--cv-ink);
    font-size: var(--cv-input-font-size);
}

.latest-pieces-page .search-form input:focus,
.latest-pieces-page .md-form-input:focus {
    background: var(--cv-paper);
    outline: var(--cv-border-width) solid var(--cv-accent);
}

.latest-pieces-page .search-form input::placeholder,
.latest-pieces-page .md-form-input::placeholder {
    color: var(--cv-muted);
}

.latest-pieces-page .search_sbtn,
.latest-pieces-page .grid-cart-btn,
.latest-pieces-page .main-subscribe-btn {
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
}

.latest-pieces-page .cart-icon,
.latest-pieces-page .account-icon {
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--cv-button-secondary-bg);
}

.latest-pieces-page .cart-count,
.latest-pieces-page .new-tag {
    background: var(--cv-badge-bg);
    color: var(--cv-badge-text);
}

.latest-pieces-page .cart-count {
    border-radius: 999px;
}

.latest-pieces-page .all-products {
    padding-top: 72px;
    padding-bottom: 88px;
}

.latest-pieces-page .listing-head {
    border-bottom: var(--cv-border-width) solid var(--cv-line);
    margin-bottom: 20px;
    padding-bottom: 18px;
}

.latest-pieces-page .listing-head h2 {
    margin: 8px 0 0;
    color: var(--cv-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 56px) !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    letter-spacing: -.035em !important;
}

.latest-pieces-page .piece-count {
    color: var(--cv-muted);
    font-size: 12px;
}

.latest-pieces-page .eyebrow,
.latest-pieces-page .section-subtitle,
.latest-pieces-page .subcategory,
.latest-pieces-page .empty-state,
.latest-pieces-page .sub-text,
.latest-pieces-page .md-tc {
    color: var(--cv-muted);
}

.latest-pieces-page .listing-action,
.latest-pieces-page .pagination a,
.latest-pieces-page .pagination span {
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--cv-button-secondary-bg);
    color: var(--cv-button-secondary-text);
}

.latest-pieces-page .listing-action:hover,
.latest-pieces-page .pagination a:hover,
.latest-pieces-page .pagination .current-page {
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
}

.latest-pieces-page .product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.latest-pieces-page .product-grid > .app-product-card { min-width: 0; display: flex !important; overflow: hidden; flex-direction: column; border: 0; border-radius: 6px; background: #fff; box-shadow: none; }
.latest-pieces-page .app-product-link { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.latest-pieces-page .app-product-image { width: 100%; aspect-ratio: .84; overflow: hidden; background: #f2f2f2; }
.latest-pieces-page .app-product-image img { width: 100%; height: 100%; object-fit: cover; }
.latest-pieces-page .app-product-copy { flex: 1; padding: 9px 9px 5px; }
.latest-pieces-page .app-product-type { display: block; overflow: hidden; color: #858585; font-size: 10px; font-weight: 350; white-space: nowrap; text-overflow: ellipsis; }
.latest-pieces-page .app-product-copy h3 { min-height: 2.45em; margin: 3px 0 0; display: -webkit-box; overflow: hidden; color: #555; font-size: 14px; font-weight: 350; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.latest-pieces-page .app-product-foot { min-height: 42px; padding: 0 7px 8px 9px; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.latest-pieces-page .app-price { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.latest-pieces-page .app-price strong { color: #111; font-size: 14px; font-weight: 600; white-space: nowrap; }
.latest-pieces-page .app-price del { color: #999; font-size: 10px; font-weight: 350; white-space: nowrap; }
.latest-pieces-page .app-product-actions { display: flex; flex: 0 0 auto; align-items: center; }
.latest-pieces-page .app-product-actions .wishlist-btn,
.latest-pieces-page .app-product-actions .quick-add { position: static !important; width: 32px !important; min-width: 32px; height: 32px !important; margin: 0 !important; padding: 0 !important; display: grid !important; place-items: center; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #555 !important; box-shadow: none !important; font-size: 18px !important; }

.latest-pieces-page .product-card {
    border: 0;
    border-radius: var(--cv-radius);
    background: var(--cv-paper);
    overflow: hidden;
    transition: transform .25s ease;
}

.latest-pieces-page .product-card:hover {
    transform: translateY(-3px);
}

.latest-pieces-page .product-image {
    background: var(--cv-soft);
    overflow: hidden;
}

.latest-pieces-page .product-image img {
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.latest-pieces-page .product-card:hover .product-image img {
    transform: scale(1.035);
}

.latest-pieces-page .product-info {
    padding: var(--cv-card-padding);
}

.latest-pieces-page .product-name {
    min-height: 0;
    color: var(--cv-ink);
    font-size: var(--cv-product-name-size);
    font-weight: var(--cv-title-weight);
}

.latest-pieces-page .new-tag,
.latest-pieces-page .discount-tag,
.latest-pieces-page .promo-countdown,
.latest-pieces-page .price-now {
    color: var(--cv-sale);
}

.latest-pieces-page .new-tag {
    margin-left: 0;
    padding: 3px 6px;
    border-radius: var(--cv-button-radius);
    color: var(--cv-badge-text);
}

.latest-pieces-page .shipping-tag {
    color: var(--cv-shipping);
}

.latest-pieces-page .price {
    color: var(--cv-price);
    font-size: var(--cv-price-font-size);
}

.latest-pieces-page .wishlist-btn {
    border: 0;
    background: var(--cv-button-secondary-bg);
    color: var(--cv-button-secondary-text);
}

.latest-pieces-page .wishlist-btn:hover,
.latest-pieces-page .wishlist-btn.is-active {
    background: var(--cv-badge-bg);
    color: var(--cv-badge-text);
}

.latest-pieces-page .footer-main-desktop {
    background: var(--cv-paper);
    color: var(--cv-ink);
}

.latest-pieces-page .wishlist-auth__backdrop {
    background: var(--cv-page);
}

.latest-pieces-page .wishlist-auth__panel {
    border: 0;
    background: var(--cv-paper);
}

.latest-pieces-page .wishlist-auth__panel h2,
.latest-pieces-page .wishlist-auth__actions button {
    color: var(--cv-ink);
}

.latest-pieces-page .wishlist-auth__panel p {
    color: var(--cv-muted);
}

.latest-pieces-page .wishlist-auth__actions a,
.latest-pieces-page .wishlist-auth__actions button {
    border: 0;
    border-radius: var(--cv-button-radius);
}

.latest-pieces-page .wishlist-auth__actions a {
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
}

.latest-pieces-page .wishlist-auth__actions button {
    background: var(--cv-button-secondary-bg);
}

.latest-pieces-page .wishlist-toast {
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
}

@media (max-width: 980px) {
    .latest-pieces-page .arrival-hero,
    .latest-pieces-page .collection-switcher { display: none !important; }

    .latest-pieces-page .all-products { display: block !important; padding: 14px 0 64px; }
    .latest-pieces-page .container_na { display: block !important; width: 100%; padding: 0 4px; }

    .latest-pieces-page .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        min-height: 1px;
    }

    .latest-pieces-page .product-grid > .app-product-card { width: 100%; visibility: visible !important; opacity: 1 !important; }
}

@media (max-width: 640px) {
    .latest-pieces-page .arrival-hero,
    .latest-pieces-page .collection-switcher {
        display: none;
    }

    .latest-pieces-page .all-products {
        padding-top: 14px;
    }

    .latest-pieces-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .latest-pieces-page .arrival-hero,
    .latest-pieces-page .collection-switcher {
        width: min(100% - 24px, 1320px);
    }

    .latest-pieces-page .arrival-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .latest-pieces-page .arrival-hero-copy {
        min-height: 440px;
        padding: 38px 24px;
    }

    .latest-pieces-page .arrival-hero-copy h1 {
        font-size: 54px !important;
    }

    .latest-pieces-page .arrival-hero-copy p {
        font-size: 13px;
    }

    .latest-pieces-page .arrival-hero-mark {
        display: none;
    }

    .latest-pieces-page .collection-switcher {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 0;
    }

    .latest-pieces-page .collection-switcher > div {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .latest-pieces-page .collection-switcher a {
        flex: 0 0 auto;
    }

    .latest-pieces-page .listing-head h2 {
        font-size: 34px !important;
    }

    .latest-pieces-page .all-products { padding: 14px 0 64px; }

    .latest-pieces-page .product-grid {
        gap: 4px;
    }
}
@media (min-width: 641px) {
  .latest-pieces-page { padding-bottom: 0 !important; }
  .latest-pieces-page .app-dock { display: none !important; }
}
