/* ===== Party Wear Category Page - Exact Reference Copy ===== */

/* Remove gap between header and hero - hero touches header like homepage */
body.term-party-wear main.pa-main,
body.term-party-wear .pa-page,
body.term-party-wear .pa-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hero Banner - FULL WIDTH, like reference */
body.term-party-wear h1.page-title {
    background-image: url('https://pakeezaashfaqstudio.com/wp-content/uploads/2026/10/party-wear-hero-wide.webp') !important;
    background-size: cover !important;
    background-position: center top !important;
    position: relative;
    text-align: center;
    padding: 110px 20px 120px !important;
    margin: 0 0 50px !important;
    font-size: 0 !important;
    line-height: 1;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    max-width: none !important;
    display: block !important;
}
body.term-party-wear h1.page-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%) !important;
    pointer-events: none;
}
body.term-party-wear h1.page-title::after {
    content: 'Party Wear Collection';
    position: relative;
    z-index: 1;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 46px !important;
    font-weight: 400 !important;
    color: #e8c97a !important;
    display: block !important;
    line-height: 1.2;
}
/* Subtitle positioned over hero */
body.term-party-wear .term-description {
    text-align: center !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    margin: -100px 0 60px !important;
    padding: 0 20px !important;
    position: relative;
    z-index: 1;
    display: block !important;
}
body.term-party-wear .term-description,
body.term-party-wear .term-description p {
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 0;
}

/* Product Grid - 4 per row, LEFT ALIGNED, homepage card size */
body.term-party-wear ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    padding: 0 20px !important;
    max-width: 1200px !important;
    margin: 0 auto 60px !important;
    justify-content: start !important;
    list-style: none !important;
}
body.term-party-wear ul.products::before,
body.term-party-wear ul.products::after {
    display: none !important;
    content: none !important;
}
body.term-party-wear ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fdfbf5 !important;
    border: 1px solid #d4af5a !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    padding: 0 0 22px 0 !important;
    box-shadow: 0 2px 14px rgba(0,0,0,.06) !important;
    text-align: center !important;
    position: relative !important;
}
body.term-party-wear ul.products li.product img {
    aspect-ratio: 3/4 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 0 !important;
}
body.term-party-wear ul.products li.product .woocommerce-loop-product__title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 18px !important;
    color: #2b2b2b !important;
    padding: 14px 10px 0 !important;
    margin: 0 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}
body.term-party-wear ul.products li.product .woocommerce-loop-product__title::after {
    content: '\2726' !important;
    display: block !important;
    color: #C9A24B !important;
    font-size: 12px !important;
    margin: 8px 0 2px !important;
}
body.term-party-wear ul.products li.product .price {
    color: #8a6d2f !important;
    font-size: 16px !important;
    margin: 4px 0 14px !important;
    display: block !important;
}
body.term-party-wear ul.products li.product .button,
body.term-party-wear ul.products li.product .add_to_cart_button {
    margin-top: auto !important;
    align-self: center !important;
    background: transparent !important;
    border: 1px solid #b99b5f !important;
    color: #8a6d2f !important;
    border-radius: 30px !important;
    padding: 10px 30px !important;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    display: inline-block !important;
}
body.term-party-wear ul.products li.product .button:hover,
body.term-party-wear ul.products li.product .add_to_cart_button:hover {
    background: #C9A24B !important;
    border-color: #C9A24B !important;
    color: #fff !important;
}

/* Mobile - 2 per row */
@media (max-width: 768px) {
    body.term-party-wear h1.page-title {
        padding: 80px 15px 110px !important;
    }
    body.term-party-wear h1.page-title::after {
        font-size: 30px !important;
    }
    body.term-party-wear .term-description {
        font-size: 13px !important;
        margin: -95px 0 45px !important;
        padding: 0 25px !important;
        line-height: 1.6 !important;
    }
    body.term-party-wear ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        padding: 0 12px !important;
    }
    body.term-party-wear ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px !important;
    }
}
