/**
 * xxxxx-page-elements - Product Card & Responsive Grid Style
 * Salient Inspired Minimalist Furniture/Product Showcase
 * 
 * @package xxxxx-page-elements
 * @version 1.0.0
 */

/* ==========================================================================
   1. Responsive Product Grid Container
   ========================================================================== */
.xxxxx-product-grid {
    --xxxxx-grid-gap: 30px;
    --xxxxx-cols-desktop: 4;
    --xxxxx-cols-tablet: 2;
    --xxxxx-cols-mobile: 1;

    display: grid;
    gap: var(--xxxxx-grid-gap);
    grid-template-columns: repeat(var(--xxxxx-cols-desktop), minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 2rem 0;
}

@media screen and (max-width: 1024px) {
    .xxxxx-product-grid {
        grid-template-columns: repeat(var(--xxxxx-cols-tablet), minmax(0, 1fr));
        --xxxxx-grid-gap: 20px;
    }
}

@media screen and (max-width: 690px) {
    .xxxxx-product-grid {
        grid-template-columns: repeat(var(--xxxxx-cols-mobile), minmax(0, 1fr));
        --xxxxx-grid-gap: 16px;
    }
}

/* ==========================================================================
   2. Product Card Wrapper
   ========================================================================== */
.xxxxx-product-card {
    --xxxxx-pc-title-color: inherit;
    --xxxxx-pc-subtitle-color: #a38258; /* Warm Gold / Bronze */
    --xxxxx-pc-text-color: inherit;
    --xxxxx-pc-bg-color: transparent;

    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    background-color: var(--xxxxx-pc-bg-color);
    width: 100%;
    margin-bottom: 1.5rem;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.xxxxx-product-card.has-link {
    cursor: pointer;
}

.xxxxx-pc-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.xxxxx-product-card *,
.xxxxx-product-card *::before,
.xxxxx-product-card *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* ==========================================================================
   3. Media / Image Box
   ========================================================================== */
.xxxxx-pc-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: transparent !important;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Aspect Ratios */
.xxxxx-pc-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.xxxxx-pc-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.xxxxx-pc-ratio-3-4 {
    aspect-ratio: 3 / 4;
}

.xxxxx-pc-ratio-auto {
    aspect-ratio: auto;
}

.xxxxx-pc-media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
}

.xxxxx-pc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.35s ease;
}

/* Hover Zoom Effect: ONLY when hovering directly over media, or over the card when card is linked */
.xxxxx-pc-zoom-yes .xxxxx-pc-media:hover .xxxxx-pc-image,
.xxxxx-pc-zoom-yes.has-link:hover .xxxxx-pc-image {
    transform: scale(1.055);
}

/* Image Swap Transition Animation */
.xxxxx-pc-image.is-fading {
    opacity: 0.25;
}

/* ==========================================================================
   4. Typography & Meta Information
   ========================================================================== */
.xxxxx-pc-meta {
    display: flex;
    flex-direction: column;
}

/* Alignments */
.xxxxx-pc-align-left .xxxxx-pc-meta {
    text-align: left;
}

.xxxxx-pc-align-left .xxxxx-pc-swatches {
    justify-content: flex-start;
}

.xxxxx-pc-align-center .xxxxx-pc-meta {
    text-align: center;
}

.xxxxx-pc-align-center .xxxxx-pc-swatches {
    justify-content: center;
}

/* Subtitle / Category */
.xxxxx-pc-subtitle {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--xxxxx-pc-subtitle-color);
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

/* Product Title */
.xxxxx-pc-title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 8px 0;
    color: var(--xxxxx-pc-title-color);
    font-weight: 500;
    font-family: inherit;
}

.xxxxx-pc-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.xxxxx-pc-title a:hover {
    opacity: 0.8;
}

/* Specs (Dimensions, Materials) */
.xxxxx-pc-spec {
    font-size: 13px;
    line-height: 1.5;
    color: var(--xxxxx-pc-text-color);
    margin: 0 0 4px 0;
    letter-spacing: -0.005em;
    font-family: inherit;
}

.xxxxx-pc-spec-1 {
    font-weight: 400;
}

.xxxxx-pc-spec-2 {
    font-weight: 400;
}

/* Freeform WYSIWYG Text Styling Support - 100% Theme Typography */
.xxxxx-pc-meta p,
.xxxxx-pc-custom-content p {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--xxxxx-pc-text-color);
    letter-spacing: -0.005em;
    font-family: inherit;
}

.xxxxx-pc-meta h1,
.xxxxx-pc-meta h2,
.xxxxx-pc-meta h3,
.xxxxx-pc-meta h4,
.xxxxx-pc-meta h5,
.xxxxx-pc-meta h6,
.xxxxx-pc-custom-content h1,
.xxxxx-pc-custom-content h2,
.xxxxx-pc-custom-content h3,
.xxxxx-pc-custom-content h4,
.xxxxx-pc-custom-content h5,
.xxxxx-pc-custom-content h6 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 8px 0;
    color: var(--xxxxx-pc-title-color);
    font-weight: 500;
    font-family: inherit;
}

/* ==========================================================================
   5. Interactive Color Swatches (Strict Bullet Removal)
   ========================================================================== */
.xxxxx-product-card ul.xxxxx-pc-swatches,
.xxxxx-pc-swatches {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    position: relative !important;
    z-index: 5 !important;
}

.xxxxx-pc-custom-content a,
.xxxxx-pc-title a {
    position: relative;
    z-index: 3;
}

.xxxxx-product-card ul.xxxxx-pc-swatches > li,
.xxxxx-pc-swatch-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Prevent theme pseudo-elements from injecting dots/bullets */
.xxxxx-product-card ul.xxxxx-pc-swatches li::before,
.xxxxx-product-card ul.xxxxx-pc-swatches li::after,
.xxxxx-pc-swatch-item::before,
.xxxxx-pc-swatch-item::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.xxxxx-pc-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease;
}

.xxxxx-pc-swatch:hover {
    transform: scale(1.15);
}

/* Active ring effect (White inner ring + dark outer ring) */
.xxxxx-pc-swatch.is-active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #222222, inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
}

/* Light background swatch border safeguard */
.xxxxx-pc-swatch[style*="#fff"],
.xxxxx-pc-swatch[style*="#ffffff"],
.xxxxx-pc-swatch[style*="rgb(255, 255, 255)"] {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   6. Responsive Tuning
   ========================================================================== */
@media screen and (max-width: 690px) {
    .xxxxx-pc-media {
        margin-bottom: 12px;
    }

    .xxxxx-pc-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .xxxxx-pc-subtitle {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .xxxxx-pc-spec {
        font-size: 12px;
    }

    .xxxxx-pc-swatches {
        gap: 7px;
        margin-top: 10px;
    }

    .xxxxx-pc-swatch {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   7. Progressive Load More & Card Visibility
   ========================================================================== */
.xxxxx-product-card.is-hidden {
    display: none !important;
}

@keyframes xxxxxCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.xxxxx-product-card.is-revealed {
    animation: xxxxxCardFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.xxxxx-grid-container-wrap {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.xxxxx-grid-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0 3.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

.xxxxx-grid-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 44px;
    background: transparent;
    border: 1px solid #222222;
    color: #222222;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    font-family: inherit;
    line-height: 1.2;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.xxxxx-grid-load-more-btn:hover {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}

.xxxxx-grid-load-more-btn:active {
    transform: scale(0.98);
}

@media screen and (max-width: 690px) {
    .xxxxx-grid-load-more-wrap {
        margin: 1.8rem 0 2.5rem 0;
    }
    .xxxxx-grid-load-more-btn {
        padding: 11px 32px;
        font-size: 12px;
    }
}

