/* Qadiyah WooCommerce shop */

body.qadiyah-shop-body {
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 210, 106, 0.10), transparent 34%),
        radial-gradient(circle at 86% 14%, rgba(255, 209, 102, 0.12), transparent 30%),
        radial-gradient(circle at 55% 86%, rgba(233, 69, 96, 0.11), transparent 32%),
        var(--primary-color);
}

body.qadiyah-shop-body #primary {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 150px 0 70px;
}

body.qadiyah-shop-body #main {
    width: 100%;
}

body.qadiyah-shop-body #sidebar {
    display: none !important;
}

body.qadiyah-shop-body .woocommerce-breadcrumb,
body.qadiyah-shop-body .woocommerce-products-header,
body.qadiyah-shop-body .woocommerce-products-header__title {
    display: none;
}

.qadiyah-shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
        rgba(12, 14, 32, 0.84);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    position: relative;
}

body.qadiyah-experience-games .qadiyah-shop-hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 209, 102, 0.22), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(0, 210, 106, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(50, 31, 147, 0.92), rgba(17, 24, 39, 0.88));
}

.qadiyah-shop-hero__copy,
.qadiyah-shop-hero__panel {
    position: relative;
    z-index: 1;
}

.qadiyah-shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.16);
    color: #ffd166;
    font-size: 0.82rem;
    font-weight: 800;
}

.qadiyah-shop-kicker::before {
    content: "\f11b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.qadiyah-shop-hero h1 {
    margin: 14px 0 10px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.qadiyah-shop-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.03rem;
}

.qadiyah-shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.qadiyah-shop-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.qadiyah-shop-action:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.13);
}

.qadiyah-shop-action.primary {
    border-color: rgba(255, 209, 102, 0.46);
    background: linear-gradient(135deg, #ffd166, #ff8fab);
    color: #1c1230;
}

.qadiyah-shop-hero__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.qadiyah-shop-hero__panel a {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-areas:
        "icon title"
        "icon text";
    gap: 2px 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.qadiyah-shop-hero__panel a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(-3px);
}

.qadiyah-shop-hero__panel span {
    grid-area: icon;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffd166;
}

.qadiyah-shop-hero__panel strong {
    grid-area: title;
    font-size: 0.98rem;
}

.qadiyah-shop-hero__panel small {
    grid-area: text;
    color: rgba(255, 255, 255, 0.68);
}

body.qadiyah-shop-body .woocommerce-notices-wrapper {
    margin: 0 0 16px;
}

body.qadiyah-shop-body .woocommerce-result-count,
body.qadiyah-shop-body .woocommerce-ordering {
    float: none;
    margin: 0 0 18px;
}

body.qadiyah-shop-body .woocommerce-result-count {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

body.qadiyah-shop-body .woocommerce-ordering {
    display: inline-flex;
    float: left;
}

body.qadiyah-shop-body .woocommerce-ordering select {
    min-height: 42px;
    min-width: 210px;
    padding: 8px 13px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 35, 0.88);
    color: var(--text-color);
    font-family: inherit;
    font-weight: 700;
}

body.qadiyah-shop-body ul.products {
    clear: both;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

body.qadiyah-shop-body ul.products::before,
body.qadiyah-shop-body ul.products::after {
    display: none !important;
}

body.qadiyah-shop-body ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 14px !important;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(15, 15, 35, 0.78);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.qadiyah-shop-body ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 209, 102, 0.36);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

body.qadiyah-shop-body ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

body.qadiyah-shop-body ul.products li.product img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin: 0 0 14px !important;
    padding: 26px;
    border-radius: 14px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(0, 210, 106, 0.12));
}

body.qadiyah-shop-body ul.products li.product img.woocommerce-placeholder {
    opacity: 0;
}

body.qadiyah-shop-body ul.products li.product .woocommerce-LoopProduct-link::before {
    content: "\f11b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 100%;
    height: 160px;
    margin-bottom: -160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-size: 3rem;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-plus .woocommerce-LoopProduct-link::before {
    content: "\f521";
    background: linear-gradient(135deg, #ffd166, #ff7a90);
    color: #211126;
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-coins .woocommerce-LoopProduct-link::before {
    content: "\f51e";
    background: linear-gradient(135deg, #facc15, #22c55e);
    color: #14210f;
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-ai .woocommerce-LoopProduct-link::before {
    content: "\f544";
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    color: #fff;
}

body.qadiyah-shop-body ul.products li.product .woocommerce-loop-product__title {
    min-height: 58px;
    margin: 4px 0 10px !important;
    padding: 0 !important;
    color: var(--text-color);
    font-size: 1.04rem !important;
    line-height: 1.45;
    font-weight: 800;
}

body.qadiyah-shop-body ul.products li.product .price {
    margin-top: auto;
    color: #ffd166 !important;
    font-size: 1.18rem !important;
    font-weight: 900;
}

body.qadiyah-shop-body ul.products li.product .price bdi {
    color: inherit;
}

body.qadiyah-shop-body ul.products li.product .button {
    width: 100%;
    min-height: 44px;
    margin-top: 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #00d26a, #2dd4bf) !important;
    color: #061a13 !important;
    font-family: inherit;
    font-weight: 900 !important;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 210, 106, 0.18);
}

body.qadiyah-shop-body ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 210, 106, 0.26);
}

body.qadiyah-shop-body .woocommerce-message,
body.qadiyah-shop-body .woocommerce-info,
body.qadiyah-shop-body .woocommerce-error {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 15, 35, 0.92);
    color: var(--text-color);
}

html[data-theme="light"] body.qadiyah-shop-body {
    background:
        radial-gradient(circle at 16% 12%, rgba(34, 197, 94, 0.12), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(250, 204, 21, 0.18), transparent 30%),
        #f6f8fb;
}

html[data-theme="light"] body.qadiyah-shop-body ul.products li.product,
html[data-theme="light"] body.qadiyah-shop-body .woocommerce-result-count {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body.qadiyah-shop-body .woocommerce-ordering select {
    background: #fff;
    color: #1f2937;
    border-color: rgba(15, 23, 42, 0.12);
}

@media (max-width: 980px) {
    .qadiyah-shop-hero {
        grid-template-columns: 1fr;
    }

    .qadiyah-shop-hero__panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qadiyah-shop-hero__panel a {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "title"
            "text";
        text-align: center;
        justify-items: center;
    }

    body.qadiyah-shop-body ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.qadiyah-shop-body #primary {
        width: min(100% - 20px, 1180px);
        padding-top: 126px;
    }

    .qadiyah-shop-hero {
        padding: 18px;
        border-radius: 14px;
    }

    .qadiyah-shop-hero h1 {
        font-size: 2rem;
    }

    .qadiyah-shop-hero__panel {
        grid-template-columns: 1fr;
    }

    body.qadiyah-shop-body .woocommerce-result-count,
    body.qadiyah-shop-body .woocommerce-ordering {
        display: flex;
        width: 100%;
        float: none;
    }

    body.qadiyah-shop-body .woocommerce-ordering select {
        width: 100%;
    }

    body.qadiyah-shop-body ul.products {
        grid-template-columns: 1fr;
    }

    body.qadiyah-shop-body ul.products li.product {
        min-height: 0;
    }
}

/* Compact buyer-focused tuning */
body.qadiyah-shop-body .site-header {
    padding: 6px 0;
}

body.qadiyah-shop-body .header-container {
    height: 54px;
}

body.qadiyah-shop-body .site-header.scrolled .header-container {
    height: 50px;
}

body.qadiyah-shop-body .site-logo-image {
    height: 30px;
    max-width: min(132px, 34vw);
}

body.qadiyah-shop-body .header-icon-btn {
    width: 36px;
    height: 36px;
}

body.qadiyah-shop-body .header-store-toggle {
    width: auto;
    min-width: 68px;
    padding-inline: 12px;
}

body.qadiyah-shop-body .header-auth-btn.login {
    min-height: 36px;
    padding: 8px 13px;
}

body.qadiyah-shop-body #primary {
    padding-top: 122px;
}

body.qadiyah-shop-body .qadiyah-shop-hero {
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.20);
}

body.qadiyah-shop-body .qadiyah-shop-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.18;
}

body.qadiyah-shop-body .qadiyah-shop-hero p {
    font-size: 0.96rem;
}

body.qadiyah-shop-body .qadiyah-shop-actions {
    margin-top: 14px;
}

body.qadiyah-shop-body .qadiyah-shop-hero__panel a {
    min-height: 62px;
    padding: 10px;
    border-radius: 12px;
}

body.qadiyah-shop-body .qadiyah-shop-hero__panel span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

body.qadiyah-shop-body ul.products {
    gap: 14px;
    margin-top: 10px !important;
}

body.qadiyah-shop-body ul.products li.product {
    min-height: 314px;
    padding: 12px !important;
    border-radius: 14px;
}

body.qadiyah-shop-body ul.products li.product img,
body.qadiyah-shop-body ul.products li.product .woocommerce-LoopProduct-link::before {
    height: 126px;
    border-radius: 12px;
}

body.qadiyah-shop-body ul.products li.product img {
    margin-bottom: 12px !important;
    padding: 20px;
}

body.qadiyah-shop-body ul.products li.product .woocommerce-LoopProduct-link::before {
    margin-bottom: -126px;
    font-size: 2.35rem;
}

body.qadiyah-shop-body ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px;
    margin: 2px 0 8px !important;
    font-size: 0.96rem !important;
}

body.qadiyah-shop-body ul.products li.product .price {
    font-size: 1.08rem !important;
}

body.qadiyah-shop-body ul.products li.product .button {
    min-height: 40px;
    margin-top: 10px !important;
}

body.qadiyah-shop-body .site-footer {
    padding-top: 42px;
}

body.qadiyah-shop-body .footer-logo-image {
    height: 34px;
    max-width: 150px;
}

body.qadiyah-shop-body .footer-logo--image {
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    body.qadiyah-shop-body .header-container {
        height: 52px;
    }

    body.qadiyah-shop-body .site-logo-image {
        height: 28px;
        max-width: 112px;
    }

    body.qadiyah-shop-body #primary {
        padding-top: 112px;
    }

    body.qadiyah-shop-body .qadiyah-shop-hero {
        padding: 14px;
    }

    body.qadiyah-shop-body .qadiyah-shop-hero h1 {
        font-size: 1.65rem;
    }

    body.qadiyah-shop-body .footer-logo-image {
        height: 30px;
        max-width: 130px;
    }
}

/* Purchase-card redesign: no square product images */
body.qadiyah-shop-body #primary {
    width: min(1120px, calc(100% - 32px));
}

body.qadiyah-shop-body .qadiyah-shop-hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
    background:
        linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(34, 197, 94, 0.10)),
        rgba(12, 14, 32, 0.88);
}

body.qadiyah-shop-body .qadiyah-shop-hero__copy {
    max-width: 760px;
}

body.qadiyah-shop-body .qadiyah-shop-hero__panel {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.qadiyah-shop-body .qadiyah-shop-hero__panel a {
    grid-template-columns: 1fr;
    grid-template-areas:
        "icon"
        "title"
        "text";
    justify-items: center;
    text-align: center;
}

body.qadiyah-shop-body .woocommerce-result-count {
    background: rgba(255, 255, 255, 0.08);
}

body.qadiyah-shop-body ul.products {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px;
    align-items: stretch;
}

body.qadiyah-shop-body ul.products li.product {
    min-height: 0;
    padding: 0 !important;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
        rgba(15, 15, 35, 0.84);
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-plus {
    grid-column: span 3;
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-coins {
    grid-column: span 2;
}

body.qadiyah-shop-body ul.products li.product img,
body.qadiyah-shop-body ul.products li.product .woocommerce-LoopProduct-link::before {
    display: none !important;
    content: none !important;
}

body.qadiyah-shop-body ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    min-height: 238px;
    padding: 18px 18px 0;
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-coins .woocommerce-LoopProduct-link {
    min-height: 250px;
}

.qadiyah-shop-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 16px;
}

.qadiyah-shop-card-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, #ffd166, #ff8fab);
    box-shadow: 0 10px 26px rgba(255, 209, 102, 0.22);
}

.qadiyah-shop-card-head--coins .qadiyah-shop-card-icon {
    background: linear-gradient(135deg, #facc15, #22c55e);
}

.qadiyah-shop-card-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.qadiyah-shop-card-tag {
    margin-inline-start: auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffd166;
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

body.qadiyah-shop-body ul.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    margin: 0 0 8px !important;
    font-size: 1.08rem !important;
    line-height: 1.45;
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-plus .woocommerce-loop-product__title {
    font-size: 1.2rem !important;
}

.qadiyah-shop-product-note {
    min-height: 54px;
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

body.qadiyah-shop-body ul.products li.product .price {
    margin: auto 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.28rem !important;
}

body.qadiyah-shop-body ul.products li.product .button {
    width: calc(100% - 36px);
    margin: 16px 18px 18px !important;
    min-height: 46px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #ffd166, #22c55e) !important;
    color: #111827 !important;
}

body.qadiyah-shop-body ul.products li.qadiyah-shop-product-plus .button {
    background: linear-gradient(135deg, #ff8fab, #ffd166) !important;
}

html[data-theme="light"] body.qadiyah-shop-body ul.products li.product {
    background: #fff;
}

html[data-theme="light"] .qadiyah-shop-product-note {
    color: #5f6678;
}

html[data-theme="light"] .qadiyah-shop-card-tag {
    background: #fff7df;
    color: #946200;
}

@media (max-width: 980px) {
    body.qadiyah-shop-body ul.products li.qadiyah-shop-product-plus,
    body.qadiyah-shop-body ul.products li.qadiyah-shop-product-coins {
        grid-column: span 3;
    }
}

@media (max-width: 640px) {
    body.qadiyah-shop-body .qadiyah-shop-hero__panel {
        grid-template-columns: 1fr;
    }

    body.qadiyah-shop-body ul.products {
        grid-template-columns: 1fr !important;
    }

    body.qadiyah-shop-body ul.products li.qadiyah-shop-product-plus,
    body.qadiyah-shop-body ul.products li.qadiyah-shop-product-coins {
        grid-column: auto;
    }

    body.qadiyah-shop-body ul.products li.product .woocommerce-LoopProduct-link,
    body.qadiyah-shop-body ul.products li.qadiyah-shop-product-coins .woocommerce-LoopProduct-link {
        min-height: 0;
    }
}
