/* 1. PREMIUM PRODUCT CARDS (High-End Elevation & Alignment) */
.product-card-premium {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--soft-shadow);
    display: flex; /* Fixes 'Scattered' heights */
    flex-direction: column;
    height: 100%; 
}

.product-card-premium:hover {
    transform: translateY(-12px);
    border-color: var(--accent-gold);
    box-shadow: var(--premium-shadow);
}

/* Image scaling for cards */
.card-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--neutral-light);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card-premium:hover .card-img-wrap img {
    transform: scale(1.1);
}

/* 2. THE INFRASTRUCTURE STEPS (Modern Squircles) */
.step-icon {
    width: 80px; 
    height: 80px;
    background: var(--bg-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 24px; /* The 'Squircle' */
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900; 
    color: var(--primary-black);
    margin: 0 auto 24px;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.roadmap-card:hover .step-icon {
    background: var(--accent-gold);
    color: var(--primary-black);
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(242, 183, 5, 0.25);
}

/* 3. DYNAMIC BADGES (Cinematic Pill) */
.badge-moq {
    position: absolute; 
    top: 20px; 
    left: 20px;
    background: rgba(11, 11, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 6px 16px; 
    border-radius: 50px; 
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
}

/* 4. SEARCH DROP_DOWN (Premium Glass Overlay) */
#search-results-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--premium-shadow);
    padding: 12px;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.search-result-item:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    transform: translateX(10px);
}

/* 5. MODERN SHIMMER LOADERS */
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f2f2f2 25%, #fafafa 50%, #f2f2f2 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 6px;
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 6. TYPOGRAPHY REFINEMENT */
.product-card-premium h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.product-card-premium p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- LIVE DEALS ARRANGEMENT --- */
.deals-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
}

.text-link-premium {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
    transition: var(--transition-smooth);
}

.text-link-premium:hover {
    color: var(--accent-gold);
    padding-right: 10px;
}

/* --- PRODUCT GRID RESET --- */
.cassandra-products-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cassandra-products-grid ul.products::before,
.cassandra-products-grid ul.products::after {
    display: none !important; /* Removes old float clearfix that scatters items */
}

/* Force WooCommerce Li to act like our Premium Cards */
.cassandra-products-grid ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    padding: 25px;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--soft-shadow);
    transition: var(--transition-smooth);
}

.cassandra-products-grid ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: var(--premium-shadow);
}

/* Image alignment within the deal card */
.cassandra-products-grid ul.products li.product img {
    border-radius: 20px;
    margin-bottom: 20px;
}

.cassandra-products-grid ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-black);
    padding: 0;
}