/* Shared shop cards for the storefront and homepage collection. */
.home-body .product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

:is(.home-body, .customer-dashboard-body) .store-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(92, 52, 116, .11);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(45, 22, 62, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

:is(.home-body, .customer-dashboard-body) .store-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(45, 22, 62, .11);
}

:is(.home-body, .customer-dashboard-body) .store-product-card .featured-image {
    display: grid;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: #eee7f4;
    color: #673493;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

:is(.home-body, .customer-dashboard-body) .store-product-card .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

:is(.home-body, .customer-dashboard-body) .store-product-card:hover .featured-image img {
    transform: scale(1.035);
}

:is(.home-body, .customer-dashboard-body) .store-product-card .featured-content {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 11px;
    padding: 12px 4px 4px;
    font-family: "Poppins", Arial, sans-serif;
}

:is(.home-body, .customer-dashboard-body) .store-product-card h3 {
    min-height: 0;
    margin: 0;
    color: #211428;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: normal;
}

:is(.home-body, .customer-dashboard-body) .store-product-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: inherit;
    text-decoration: none;
}

:is(.home-body, .customer-dashboard-body) .store-product-card .featured-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

:is(.home-body, .customer-dashboard-body) .store-product-card .featured-card-action > strong {
    margin: 0;
    color: #211428;
    font-size: .9rem;
    white-space: nowrap;
}

:is(.home-body, .customer-dashboard-body) .store-product-card form {
    margin: 0;
}

:is(.home-body, .customer-dashboard-body) .store-product-card button {
    width: auto;
    min-height: 37px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: #2d2730;
    color: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
}

:is(.home-body, .customer-dashboard-body) .store-product-card button:hover {
    background: #603085;
}

.home-body .store-product-card :is(a, button):focus-visible {
    outline: 2px solid #702892;
    outline-offset: 3px;
}

/* Frosted glass surfaces for the shop collection. */
.customer-dashboard-body .store-product-card {
    border-color: rgba(255, 255, 255, .78);
    background: linear-gradient(145deg, rgba(255, 255, 255, .56), rgba(246, 239, 253, .24));
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 10px 28px rgba(58, 34, 75, .065), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(153, 123, 172, .08);
}

.customer-dashboard-body .store-product-card:hover {
    border-color: rgba(255, 255, 255, .95);
    background: linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(246, 239, 253, .35));
    box-shadow: 0 16px 36px rgba(58, 34, 75, .1), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(153, 123, 172, .1);
}

.customer-dashboard-body .store-product-card .featured-image {
    border: 1px solid rgba(255, 255, 255, .52);
    background: linear-gradient(145deg, rgba(232, 220, 242, .52), rgba(225, 210, 239, .24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.customer-dashboard-body .store-product-card button {
    background: linear-gradient(135deg, rgba(61, 44, 71, .94), rgba(43, 32, 52, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .17), 0 3px 9px rgba(47, 29, 62, .1);
}

.customer-dashboard-body .store-product-card button:hover {
    background: linear-gradient(135deg, #764896, #592b78);
}

.customer-dashboard-body .store-product-card :is(a, button):focus-visible {
    outline: 2px solid #702892;
    outline-offset: 3px;
}

@media (max-width: 1240px) {
    .home-body .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .home-body .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .home-body .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 520px) {
    :is(.home-body, .customer-dashboard-body) .store-product-card .featured-card-action {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    :is(.home-body, .customer-dashboard-body) .store-product-card .featured-card-action form,
    :is(.home-body, .customer-dashboard-body) .store-product-card button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    :is(.home-body, .customer-dashboard-body) .store-product-card,
    :is(.home-body, .customer-dashboard-body) .store-product-card .featured-image img { transition: none; }
    :is(.home-body, .customer-dashboard-body) .store-product-card:hover,
    :is(.home-body, .customer-dashboard-body) .store-product-card:hover .featured-image img { transform: none; }
}
