/* ===============================
   PAKISTANILIVING PREMIUM THEME v3.1
   Advanced Effects + Animations
   =============================== */

/* HERO */
.plx-hero {
    padding: 60px 20px 50px;
    /* Reduced size (approx 60% of original) */
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* BG1 (Purple - Legacy) */
.plx-hero.bg1 {
    background: linear-gradient(135deg, #7C3AED, #9333EA, #C084FC);
}

/* BG2 (Deep Blue/Gold - Active) */
.plx-hero.bg2 {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #fbbf24);
}

/* BG3 (Pakistan Green - Flag Style) */
.plx-hero.bg3 {
    background: linear-gradient(135deg, #00401A, #115e2e, #FFFFFF);
    /* Dark Green to White hint */
}

/* STYLE: Circles (Old Banner) */
.plx-hero.style-circles .pl-hero-bg-shapes {
    display: block !important;
}

/* Animated glowing light wave */
.plx-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    animation: plx-glow 8s infinite linear;
}

@keyframes plx-glow {
    0% {
        transform: translateX(-20%) rotate(0deg);
    }

    100% {
        transform: translateX(20%) rotate(360deg);
    }
}

/* LOGO */
.plx-hero-logo {
    width: 220px;
    margin-bottom: 22px;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEARCH */
.plx-search-container input[type="search"] {
    width: 80%;
    max-width: 520px;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* BUTTONS */
.pl-btn-light {
    background: white;
    color: #333;
    font-weight: 700;
}

.pl-btn-light:hover {
    background: #f8f9fa;
    color: #000;
}

.pl-btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 600;
}

.pl-btn-outline-light:hover {
    background: white;
    color: #333;
    border-color: white;
}


/* ===============================
   PREMIUM CARD
   =============================== */

.plx-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.08),
        /* Blue shadow */
        0 10px 30px rgba(37, 99, 235, 0.12);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eff6ff;
    /* Light blue border */
}

.plx-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 24px rgba(37, 99, 235, 0.15),
        0 18px 36px rgba(37, 99, 235, 0.22);
}

.plx-thumb {
    margin-bottom: 15px;
    position: relative;
    padding-top: 10px;
}

.plx-thumb img {
    width: 100%;
    height: 220px !important;
    /* Force fixed height */
    margin: auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(37, 99, 235, 0.20));
    /* Blue drop shadow */
    transition: transform 0.3s ease;
    object-fit: contain;
}

.plx-card:hover .plx-thumb img {
    transform: scale(1.08);
}

.plx-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1e3a8a;
    /* Dark Blue */
    line-height: 1.4;
}

.plx-spec-grid-8 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: auto;
    margin-bottom: 12px;
}

.plx-spec {
    background: #eff6ff;
    /* Blue 50 */
    border-radius: 10px;
    padding: 6px 10px;
    color: #1e40af;
    /* Blue 800 */
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plx-spec:hover {
    background: #dbeafe;
    /* Blue 100 */
}

.plx-spec svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.plx-price {}

/* --- Promo Banners --- */
.pl-promo-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pl-promo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- Mini Cards (Trending) --- */
.plx-card-mini:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #2563eb !important;
}

/* --- Archive Grid System --- */
.plx-archive-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    /* Default fallback */
}

/* Column Classes */
.plx-archive-grid.plx-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.plx-archive-grid.plx-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.plx-archive-grid.plx-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* List View Override */
.plx-archive-grid.plx-list-view {
    grid-template-columns: 1fr !important;
}

/* List View Specs Wrapping */
.plx-archive-grid.plx-list-view .plx-spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plx-archive-grid.plx-list-view .plx-spec {
    width: auto;
    flex: 0 1 auto;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .plx-archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .plx-archive-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===============================
   MARKET & SHOP UI REFRESH
   =============================== */

/* Verified Badge */
.pl-badge-verified {
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Onboarding CTA Box */
.pl-cta-box {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.pl-cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    transform: rotate(45deg);
}

.pl-cta-btn {
    display: inline-block;
    background: white;
    color: #1e3a8a;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pl-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #1e3a8a;
}

/* Shop Card Improvements */
.pl-shop-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.pl-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #bfdbfe;
}

/* Hero Overlay Gradient */
.pl-hero-overlay {
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.4), rgba(17, 24, 39, 0.9));
}