/* =========================================================
   PAMORA SHOP CARDS
   Card system aligned with the homepage New Arrivals cards.
   Kept scoped to the catalogue so home-page layout is untouched.
========================================================= */
.pamora-catalog-page .catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.pamora-catalog-page .catalog-product.pamora-new-card {
    position: relative;
    display: flex;
    flex: initial;
    flex-direction: column;
    width: auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,.80), rgba(255,255,255,.42));
    box-shadow: 0 24px 55px rgba(12,21,18,.085), 0 3px 12px rgba(12,21,18,.035), inset 0 1px 0 rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    backdrop-filter: blur(20px) saturate(125%);
    transform: translateY(0);
    transition: transform .42s cubic-bezier(.2,.8,.2,1), box-shadow .42s ease, border-color .42s ease;
}

.pamora-catalog-page .catalog-product.pamora-new-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,.98);
    box-shadow: 0 32px 70px rgba(12,21,18,.12), 0 5px 18px rgba(12,21,18,.045), inset 0 1px 0 rgba(255,255,255,.98);
}

/* Image frame + homepage-style floating controls */
.pamora-catalog-page .pamora-new-card-media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: .82;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(214,232,221,.8), rgba(238,241,236,.96));
}

.pamora-catalog-page .pamora-new-product-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.pamora-catalog-page .pamora-new-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

.pamora-catalog-page .catalog-product.pamora-new-card:hover .pamora-new-card-media img {
    transform: scale(1.045);
}

.pamora-catalog-page .pamora-new-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255,255,255,.23) 0%, transparent 30%, rgba(255,255,255,.06) 62%, rgba(255,255,255,.18) 100%);
}

.pamora-catalog-page .pamora-new-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    max-width: calc(100% - 78px);
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.83);
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    color: #0a3a2c;
    box-shadow: 0 5px 15px rgba(12,21,18,.07), inset 0 1px 0 rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: "IBM Plex Mono", monospace;
    font-size: 7px;
    font-weight: 500;
    letter-spacing: .13em;
    line-height: 1;
    text-transform: uppercase;
}

.pamora-catalog-page .pamora-new-wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    color: #0c1512;
    box-shadow: 0 8px 18px rgba(12,21,18,.08), inset 0 1px 0 rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
    cursor: pointer;
    transition: transform .28s ease, background .28s ease, color .28s ease;
}

.pamora-catalog-page .pamora-new-wishlist:hover {
    transform: scale(1.07);
    background: rgba(255,255,255,.78);
}

.pamora-catalog-page .pamora-new-wishlist[aria-pressed="true"] {
    color: #9a3b47;
    background: rgba(255,255,255,.82);
}

.pamora-catalog-page .pamora-new-wishlist i { font-size: 15px; line-height: 1; }

/* Content panel follows the homepage's title/price alignment. */
.pamora-catalog-page .pamora-new-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 19px 18px 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.60), rgba(238,241,236,.34));
}

.pamora-catalog-page .pamora-new-card-top {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pamora-catalog-page .pamora-shop-card-heading { flex: 1 1 auto; min-width: 0; }

.pamora-catalog-page .pamora-new-collection {
    display: block;
    max-width: 100%;
    margin: 0 0 7px;
    color: #0a3a2c;
    opacity: .62;
    font-family: "IBM Plex Mono", monospace;
    font-size: 7px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .13em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.pamora-catalog-page .pamora-shop-card-heading h2 {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #0c1512;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(25px, 2vw, 31px);
    font-weight: 400;
    line-height: .99;
    letter-spacing: -.025em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pamora-catalog-page .pamora-shop-card-heading h2 a {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.pamora-catalog-page .pamora-shop-card-heading h2 a:hover { text-decoration: underline; text-decoration-color: rgba(10,58,44,.28); }

.pamora-catalog-page .pamora-new-price {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 38%;
    padding: 8px 10px;
    border-radius: 5px;
    background: rgba(212,173,98,.82);
    color: #0c1512;
    box-shadow: 0 5px 14px rgba(212,173,98,.15);
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.pamora-catalog-page .pamora-new-material {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    min-height: 1.5em;
    margin-top: 13px;
    color: #52645a;
    opacity: .68;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .015em;
}

.pamora-catalog-page .pamora-new-material i { flex: 0 0 auto; margin-top: 1px; font-size: 10px; }
.pamora-catalog-page .pamora-new-material span { min-width: 0; overflow-wrap: anywhere; }

.pamora-catalog-page .pamora-new-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.pamora-catalog-page .pamora-glass-btn {
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    overflow: hidden;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.44));
    color: #0c1512;
    box-shadow: 0 8px 20px rgba(12,21,18,.065), inset 0 1px 0 rgba(255,255,255,.94), inset 0 -1px 0 rgba(12,21,18,.03);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    font-family: Manrope, Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease;
}

.pamora-catalog-page .pamora-glass-btn::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -25%;
    width: 70%;
    height: 180%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent);
    transform: rotate(18deg);
    opacity: .3;
    pointer-events: none;
}

.pamora-catalog-page .pamora-glass-btn > * { position: relative; z-index: 1; }
.pamora-catalog-page .pamora-glass-btn span { min-width: 0; overflow-wrap: anywhere; }
.pamora-catalog-page .pamora-glass-btn i { flex: 0 0 auto; font-size: 12px; }

.pamora-catalog-page .pamora-glass-btn.pamora-add-cart:hover,
.pamora-catalog-page .pamora-glass-btn.pamora-add-cart.is-cart-added {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.60));
    box-shadow: 0 12px 25px rgba(12,21,18,.095), inset 0 1px 0 rgba(255,255,255,.98);
    color: #0c1512;
}

.pamora-catalog-page .pamora-glass-btn.pamora-buy-now {
    border-color: rgba(255,255,255,.24);
    background: linear-gradient(145deg, rgba(10,58,44,.94), rgba(20,92,68,.86));
    color: #fff;
    box-shadow: 0 10px 24px rgba(10,58,44,.19), inset 0 1px 0 rgba(255,255,255,.2);
}

.pamora-catalog-page .pamora-glass-btn.pamora-buy-now:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #0a3a2c, #145c44);
    color: #fff;
    box-shadow: 0 14px 30px rgba(10,58,44,.24), inset 0 1px 0 rgba(255,255,255,.24);
}

@media (min-width: 901px) {
    .pamora-catalog-page .catalog-grid { gap: 25px; }
}

@media (min-width: 641px) and (max-width: 1100px) {
    .pamora-catalog-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .pamora-catalog-page .pamora-shop-card-heading h2 { font-size: clamp(28px, 3vw, 34px); }
    .pamora-catalog-page .pamora-new-card-content { padding: 19px 18px 18px; }
}

@media (max-width: 640px) {
    .pamora-catalog-page .catalog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .pamora-catalog-page .catalog-product.pamora-new-card {
        width: 100%;
        border-radius: 25px;
        transform: none;
        box-shadow: 0 20px 44px rgba(12,21,18,.10), 0 3px 10px rgba(12,21,18,.045), inset 0 1px 0 rgba(255,255,255,.96);
    }

    .pamora-catalog-page .catalog-product.pamora-new-card:hover { transform: none; }
    .pamora-catalog-page .pamora-new-card-media { aspect-ratio: .86; }
    .pamora-catalog-page .pamora-new-badge { top: 15px; left: 15px; min-height: 27px; }
    .pamora-catalog-page .pamora-new-wishlist { top: 13px; right: 13px; width: 40px; height: 40px; }
    .pamora-catalog-page .pamora-new-card-content { padding: 18px 18px 17px; }
    .pamora-catalog-page .pamora-new-card-top { gap: 12px; }
    .pamora-catalog-page .pamora-shop-card-heading h2 { font-size: clamp(28px, 7.4vw, 33px); line-height: .98; }
    .pamora-catalog-page .pamora-new-price { padding: 8px 10px; font-size: 12px; }
    .pamora-catalog-page .pamora-new-material { margin-top: 12px; font-size: 8px; }
    .pamora-catalog-page .pamora-new-actions { gap: 8px; padding-top: 17px; }
    .pamora-catalog-page .pamora-glass-btn { min-height: 47px; border-radius: 14px; padding: 0 10px; font-size: 8.5px; }
}

@media (max-width: 360px) {
    .pamora-catalog-page .pamora-new-card-content { padding: 16px 14px 15px; }
    .pamora-catalog-page .pamora-shop-card-heading h2 { font-size: 27px; }
    .pamora-catalog-page .pamora-new-card-top { gap: 8px; }
    .pamora-catalog-page .pamora-new-price { padding: 7px 8px; font-size: 11px; }
    .pamora-catalog-page .pamora-new-actions { gap: 6px; }
    .pamora-catalog-page .pamora-glass-btn { padding: 0 7px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .pamora-catalog-page .catalog-product.pamora-new-card,
    .pamora-catalog-page .pamora-new-card-media img,
    .pamora-catalog-page .pamora-new-wishlist,
    .pamora-catalog-page .pamora-glass-btn { transition: none !important; }
}
