/* =====================================================================
   Perfuma Clearance & Sale Effects — clearance-sale.css
   ===================================================================== */

/* ── Menu highlight for 🔥 Clearance ──────────────────────────────── */
.menu-item-clearance > a,
.menu-item-clearance > a > span {
    color: #dc2626 !important;
    font-weight: 800 !important;
    position: relative;
    transition: all 0.2s ease;
}

.menu-item-clearance > a:hover {
    color: #b91c1c !important;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.35);
}

/* ── Image wrapper & Ribbons ───────────────────────────────────────── */
.pgcs-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.pgcs-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.pgcs-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.pgcs-ribbon {
    position: absolute;
    top: 22px;
    left: -38px;
    width: 164px;
    padding: 7px 0 6px;
    text-align: center;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #ffffff;
    background: linear-gradient( 180deg, #e3000f 0%, #9e0009 100% );
    transform-origin: center center;
    transform: rotate( -45deg ) scale( 1 );
    animation:
        pgcs-spring  0.7s  cubic-bezier( 0.175, 0.885, 0.32, 1.275 ) both,
        pgcs-glow    3s    ease-in-out 1.4s infinite;
}

.pgcs-ribbon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent          0%,
        rgba(255,255,255,0)  22%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0)  78%,
        transparent          100%
    );
    animation: pgcs-ribbon-sweep 4.5s ease-in-out 2s infinite;
}

@keyframes pgcs-spring {
    0%   { transform: rotate( -45deg ) scale( 0 );    opacity: 0; }
    60%  { transform: rotate( -45deg ) scale( 1.08 ); opacity: 1; }
    80%  { transform: rotate( -45deg ) scale( 0.96 ); }
    100% { transform: rotate( -45deg ) scale( 1 );    opacity: 1; }
}

@keyframes pgcs-glow {
    0%, 100% {
        box-shadow: 0 2px  7px rgba( 180, 0,  8, 0.45 );
    }
    50% {
        box-shadow:
            0 2px 20px rgba( 220, 0, 10, 0.80 ),
            0 0   10px rgba( 255, 60, 60, 0.35 );
    }
}

@keyframes pgcs-ribbon-sweep {
    0%        { transform: translateX( -160% ); opacity: 1; }
    40%, 100% { transform: translateX(  240% ); opacity: 1; }
}

/* ── SALE light-beam shimmer ───────────────────────────────────────── */
.pgcs-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.pgcs-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 28%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent            0%,
        rgba(255,255,255,0.16) 50%,
        transparent            100%
    );
    transform: skewX( -18deg ) translateX( -220% );
    animation: pgcs-beam 7s cubic-bezier( 0.4, 0, 0.6, 1 ) 0s infinite;
}

.pgcs-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 14%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent            0%,
        rgba(255,255,255,0.10) 50%,
        transparent            100%
    );
    transform: skewX( -18deg ) translateX( -220% );
    animation: pgcs-beam 7s cubic-bezier( 0.4, 0, 0.6, 1 ) 0.45s infinite;
}

@keyframes pgcs-beam {
    0%          { transform: skewX( -18deg ) translateX( -220% ); opacity: 0; }
    4%          { opacity: 1; }
    40%         { transform: skewX( -18deg ) translateX( 550% );  opacity: 1; }
    44%, 100%   { transform: skewX( -18deg ) translateX( 550% );  opacity: 0; }
}

/* =====================================================================
   Single Product Clearance Card / Mini-Banner
   ===================================================================== */
.perfuma-clearance-card {
    margin: 14px 0 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fffbf0 50%, #fef2f2 100%);
    border: 1.5px solid #f87171;
    border-left: 5px solid #dc2626;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.10);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}

.perfuma-clearance-card:hover {
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.16);
    border-color: #ef4444;
}

.pcc-header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pcc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.pcc-flame {
    font-size: 13px;
    display: inline-block;
    animation: pcc-fire-pulse 1.4s infinite alternate ease-in-out;
}

@keyframes pcc-fire-pulse {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.25) translateY(-1px); }
}

.pcc-discount-chip {
    display: inline-flex;
    align-items: center;
    background: #fef08a;
    color: #854d0e;
    border: 1px solid #eab308;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.pcc-urgency-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-left: auto;
}

.pcc-pulse-dot {
    width: 7px;
    height: 7px;
    background: #dc2626;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    animation: pcc-pulse-dot-anim 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pcc-pulse-dot-anim {
    to { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.pcc-deal-box {
    margin-bottom: 10px;
}

.pcc-deal-headline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.pcc-size-tag {
    background: #1e293b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
}

.pcc-now-price {
    font-size: 20px;
    font-weight: 800;
    color: #b91c1c;
    letter-spacing: -0.3px;
}

.pcc-was-price {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.pcc-savings-callout {
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 6px;
}

.pcc-highlight {
    color: #dc2626;
    font-weight: 800;
}

.pcc-perks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed #fca5a5;
    font-size: 11px;
    font-weight: 600;
    color: #047857;
}

.pcc-perk {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pcc-icon {
    font-size: 12px;
}

/* =====================================================================
   Dedicated Clearance Landing Page Layout
   ===================================================================== */
.perfuma-clearance-page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 15px 60px;
    font-family: inherit;
}

/* ── Hero Banner ───────────────────────────────────────────────────── */
.pcc-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #7f1d1d 100%);
    border-radius: 16px;
    padding: 40px 30px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.pcc-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.pcc-hero-badge-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.pcc-hero-badge {
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.6);
}

.pcc-hero-tag {
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pcc-hero-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.pcc-hero-subtitle {
    font-size: 15px;
    color: #e2e8f0;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.pcc-hero-subtitle strong {
    color: #fef08a;
}

/* Trust Bar */
.pcc-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pcc-tb-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcc-tb-icon {
    font-size: 24px;
}

.pcc-tb-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.3;
}

.pcc-tb-text strong {
    color: #ffffff;
    font-size: 13px;
}

.pcc-tb-text span {
    color: #94a3b8;
    font-size: 11px;
}

/* ── Filter Navigation Tabs ────────────────────────────────────────── */
.pcc-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.pcc-tab {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.pcc-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.pcc-tab.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* ── Product Cards Grid ────────────────────────────────────────────── */
.pcc-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.pcc-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.pcc-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #f87171;
}

.pcc-card-thumb {
    position: relative;
    padding-top: 100%;
    background: #f8fafc;
    overflow: hidden;
}

.pcc-card-thumb a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcc-card-thumb img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.pcc-item-card:hover .pcc-card-thumb img {
    transform: scale(1.06);
}

.pcc-corner-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    z-index: 2;
}

.pcc-corner-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fef08a;
    color: #854d0e;
    border: 1px solid #eab308;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.pcc-card-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pcc-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pcc-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.pcc-card-title a:hover {
    color: #dc2626;
}

.pcc-card-pricing {
    margin-top: auto;
    padding-bottom: 12px;
}

.pcc-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pcc-card-sale-price {
    font-size: 17px;
    font-weight: 800;
    color: #b91c1c;
}

.pcc-card-regular-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.pcc-card-savings-label {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    margin-top: 3px;
}

.pcc-card-action {
    margin-top: 4px;
}

.pcc-view-deal-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 9px 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pcc-view-deal-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* ── High SEO Educational Guide & FAQ ──────────────────────────────── */
.pcc-seo-guide-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px 30px;
    margin-top: 20px;
}

.pcc-seo-h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.pcc-seo-intro {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 25px;
}

.pcc-seo-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.pcc-seo-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pcc-seo-card h3 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.pcc-seo-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Accordion */
.pcc-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pcc-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.pcc-faq-item[open] {
    border-color: #f87171;
}

.pcc-faq-question {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcc-faq-question::-webkit-details-marker {
    display: none;
}

.pcc-faq-question::after {
    content: '+';
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
    transition: transform 0.2s;
}

.pcc-faq-item[open] .pcc-faq-question::after {
    content: '−';
}

.pcc-faq-answer {
    padding: 0 18px 14px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.pcc-faq-answer p {
    margin: 0;
}

/* ── Mobile responsiveness ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pcc-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .pcc-hero-banner {
        padding: 25px 20px;
    }
    .pcc-hero-title {
        font-size: 24px;
    }
    .pcc-trust-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pcc-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pcc-card-details {
        padding: 12px;
    }
    .pcc-card-title {
        font-size: 13px;
        height: 36px;
    }
    .pcc-card-sale-price {
        font-size: 15px;
    }
    .pcc-seo-guide-section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .pcc-nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    .pcc-tab {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 14px;
    }
}
