/* ===============================
   PART 20
   Coupons + Reviews + Wishlist + Compare
================================ */

.p20-admin-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
    align-items: start;
}

.p20-admin-card {
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.12), transparent 40%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.20);
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.p20-admin-card h2 {
    color: white;
    margin-bottom: 16px;
}

.p20-empty {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
}

.p20-table-wrap {
    overflow-x: auto;
}

.p20-table {
    width: 100%;
    border-collapse: collapse;
}

.p20-table th,
.p20-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
    text-align: left;
    white-space: nowrap;
}

.p20-table th {
    color: white;
    background: rgba(255,255,255,0.035);
}

.p20-table strong {
    color: #ffb000;
}

.p20-ok,
.p20-bad {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.p20-ok {
    background: rgba(46, 213, 115, 0.13);
    color: #5ee88a;
    border: 1px solid rgba(46, 213, 115, 0.25);
}

.p20-bad {
    background: rgba(255, 71, 87, 0.13);
    color: #ff9aa5;
    border: 1px solid rgba(255, 71, 87, 0.25);
}

.p20-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.p20-actions a {
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(0,157,255,0.12);
    color: #dff4ff;
    border: 1px solid rgba(0,157,255,0.22);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.p20-actions a.danger,
.p20-product-actions a.danger {
    background: rgba(255,56,56,0.13);
    color: #ffb0b0;
    border-color: rgba(255,56,56,0.25);
}

.p20-review-admin-list {
    display: grid;
    gap: 14px;
}

.p20-review-admin-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.p20-review-admin-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.p20-review-admin-head h3 {
    color: white;
    margin-bottom: 4px;
}

.p20-review-admin-head p {
    color: rgba(255,255,255,0.58);
}

.p20-stars {
    color: #ffc400;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.p20-review-text {
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 10px;
}

.p20-review-admin-card small {
    display: block;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

/* Public Pages */
.p20-page {
    padding: 28px;
}

.p20-hero {
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.16), transparent 34%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.p20-hero span {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,122,0,0.13);
    border: 1px solid rgba(255,122,0,0.28);
    color: #ffe5c7;
    font-weight: 900;
    margin-bottom: 12px;
}

.p20-hero h1 {
    color: white;
    font-size: clamp(34px, 5vw, 58px);
    margin-bottom: 8px;
}

.p20-hero p {
    color: rgba(255,255,255,0.66);
}

.p20-hero a {
    padding: 13px 18px;
    border-radius: 15px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
    text-decoration: none;
    font-weight: 900;
}

.p20-empty-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.13), transparent 40%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.20);
}

.p20-empty-page > div {
    font-size: 70px;
    margin-bottom: 14px;
}

.p20-empty-page h2 {
    color: white;
    margin-bottom: 8px;
}

.p20-empty-page p {
    color: rgba(255,255,255,0.64);
    margin-bottom: 18px;
}

.p20-empty-page a,
.p20-clear-btn {
    display: inline-grid;
    place-items: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: white;
    text-decoration: none;
    font-weight: 900;
}

.p20-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.p20-product-card {
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.10), transparent 38%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.18);
}

.p20-product-img {
    height: 230px;
    display: grid;
    place-items: center;
    padding: 18px;
}

.p20-product-img img,
.p20-product-img .media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p20-product-info {
    padding: 18px;
}

.p20-product-info h3 {
    color: white;
    margin-bottom: 6px;
}

.p20-product-info p {
    color: rgba(255,255,255,0.58);
    margin-bottom: 10px;
}

.p20-product-info strong {
    color: #ffb000;
    display: block;
    margin-bottom: 14px;
}

.p20-product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.p20-product-actions a {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 10px;
    border-radius: 13px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.p20-clear-btn {
    margin-top: 18px;
}

.p20-compare-wrap {
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid rgba(0,157,255,0.20);
    background: rgba(6,16,31,0.98);
}

.p20-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.p20-compare-table th,
.p20-compare-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.76);
    text-align: center;
}

.p20-compare-table th {
    width: 160px;
    color: white;
    text-align: left;
    background: rgba(255,255,255,0.035);
}

.p20-compare-product {
    display: grid;
    place-items: center;
    gap: 10px;
}

.p20-compare-img {
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
}

.p20-compare-img img,
.p20-compare-img .media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p20-compare-product h3 {
    color: white;
    font-size: 16px;
}

.p20-compare-product a,
.p20-remove-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 900;
}

/* Mobile */
@media (max-width: 1050px) {
    .p20-admin-grid,
    .p20-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .p20-page {
        padding: 14px;
    }

    .p20-hero {
        padding: 20px;
        border-radius: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .p20-hero h1 {
        font-size: 34px;
    }

    .p20-hero a {
        width: 100%;
        text-align: center;
    }

    .p20-admin-grid {
        grid-template-columns: 1fr;
    }

    .p20-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .p20-product-img {
        height: 150px;
        padding: 12px;
    }

    .p20-product-info {
        padding: 12px;
    }

    .p20-product-info h3 {
        font-size: 15px;
    }

    .p20-product-info p {
        font-size: 12px;
    }

    .p20-product-actions a {
        min-width: 100%;
    }

    .p20-empty-page {
        padding: 26px 18px;
        border-radius: 24px;
    }
}
/* FIX ADMIN LEFT SIDEBAR SCROLL */
.admin-layout {
    min-height: 100vh;
    align-items: flex-start;
}

.admin-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 120px !important;
}

.admin-sidebar::-webkit-scrollbar {
    width: 7px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,157,255,0.45);
    border-radius: 999px;
}

.admin-menu {
    padding-bottom: 80px !important;
}

/* باش content ليمن يبقى بوحدو */
.admin-content {
    min-height: 100vh;
}

/* فالهاتف sidebar مايبقاش حابس */
@media (max-width: 900px) {
    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        position: relative !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 20px !important;
    }

    .admin-menu {
        padding-bottom: 20px !important;
    }
}
/* ===============================
   PART 20 FIX
================================ */

.p20-product-extra-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.p20-product-extra-actions a {
    flex: 1;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
}

.p20-product-extra-actions a.active {
    background: rgba(255,122,0,0.14);
    border-color: rgba(255,122,0,0.30);
    color: #ffcf8a;
}

.p20-cart-page {
    padding: 28px;
}

.p20-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: start;
}

.p20-cart-list {
    display: grid;
    gap: 14px;
}

.p20-cart-item {
    display: grid;
    grid-template-columns: 130px 1fr 110px 130px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.10), transparent 38%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.18);
}

.p20-cart-img {
    width: 130px;
    height: 110px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.p20-cart-img img,
.p20-cart-img .media-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p20-cart-info h3 {
    color: #fff;
    margin-bottom: 6px;
}

.p20-cart-info p {
    color: rgba(255,255,255,0.58);
    margin-bottom: 8px;
}

.p20-cart-info strong {
    color: #ffb000;
}

.p20-cart-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.p20-cart-actions a {
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.p20-cart-actions a.danger {
    background: rgba(255,56,56,0.13);
    border-color: rgba(255,56,56,0.25);
    color: #ffb0b0;
}

.p20-cart-qty label,
.p20-cart-total span {
    display: block;
    color: rgba(255,255,255,0.56);
    font-size: 13px;
    margin-bottom: 8px;
}

.p20-cart-qty input {
    width: 92px;
    height: 48px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.055);
    color: #fff;
    text-align: center;
    font-weight: 900;
}

.p20-cart-total strong {
    color: #ffb000;
    font-size: 18px;
}

.p20-cart-list-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.p20-cart-list-actions button,
.p20-cart-list-actions a {
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.p20-cart-list-actions button {
    background: linear-gradient(135deg, var(--orange), #ffb000);
}

.p20-cart-summary {
    position: sticky;
    top: 110px;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.12), transparent 38%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.20);
}

.p20-cart-summary h2 {
    color: #fff;
    margin-bottom: 18px;
}

.p20-coupon-form {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 18px;
}

.p20-coupon-form label {
    display: block;
    color: #fff;
    font-weight: 900;
    margin-bottom: 10px;
}

.p20-coupon-form > div {
    display: flex;
    gap: 8px;
}

.p20-coupon-form input {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.055);
    color: #fff;
    padding: 0 12px;
    outline: none;
}

.p20-coupon-form button {
    width: 90px;
    border: 0;
    border-radius: 14px;
    background: var(--orange);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.p20-remove-coupon {
    display: inline-block;
    color: #ffb0b0;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 800;
}

.p20-coupon-form p {
    margin-top: 10px;
    font-weight: 800;
}

.p20-coupon-form p.ok {
    color: #5ee88a;
}

.p20-coupon-form p.bad {
    color: #ffb0b0;
}

.p20-summary-lines {
    display: grid;
    gap: 13px;
}

.p20-summary-lines > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255,255,255,0.66);
}

.p20-summary-lines strong {
    color: #fff;
}

.p20-summary-lines .discount strong {
    color: #5ee88a;
}

.p20-summary-lines .total {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.p20-summary-lines .total span,
.p20-summary-lines .total strong {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.p20-checkout-btn {
    margin-top: 18px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(255,122,0,0.26);
}

.p20-reviews-section {
    margin-top: 26px;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(0,157,255,0.12), transparent 38%),
        linear-gradient(180deg, rgba(6,16,31,0.98), rgba(2,8,18,0.98));
    border: 1px solid rgba(0,157,255,0.20);
}

.p20-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.p20-section-head h2 {
    color: #fff;
    margin-bottom: 6px;
}

.p20-section-head p {
    color: rgba(255,255,255,0.58);
}

.p20-reviews-layout {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 18px;
    align-items: start;
}

.p20-reviews-list {
    display: grid;
    gap: 12px;
}

.p20-review-card,
.p20-review-form {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.p20-review-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.p20-review-card strong,
.p20-review-form h3 {
    color: #fff;
}

.p20-review-card span {
    color: rgba(255,255,255,0.44);
    font-size: 12px;
}

.p20-review-card p {
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
}

.p20-review-form label {
    display: block;
    color: #fff;
    font-weight: 900;
    margin: 12px 0 8px;
}

.p20-review-form input,
.p20-review-form select,
.p20-review-form textarea {
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.055);
    color: #fff;
    padding: 14px;
    outline: none;
}

.p20-review-form select option {
    background: #07111f;
    color: #fff;
}

.p20-review-form button {
    width: 100%;
    height: 52px;
    margin-top: 14px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), #ffb000);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.p20-review-msg {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0,157,255,0.10);
    border: 1px solid rgba(0,157,255,0.18);
    color: #dff4ff;
    font-weight: 800;
}

/* Mobile */
@media (max-width: 1050px) {
    .p20-cart-layout,
    .p20-reviews-layout {
        grid-template-columns: 1fr;
    }

    .p20-cart-summary {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .p20-cart-page {
        padding: 14px;
    }

    .p20-cart-item {
        grid-template-columns: 92px 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 20px;
    }

    .p20-cart-img {
        width: 92px;
        height: 92px;
        border-radius: 16px;
    }

    .p20-cart-qty,
    .p20-cart-total {
        grid-column: 2;
    }

    .p20-cart-actions a {
        flex: 1;
        text-align: center;
    }

    .p20-coupon-form > div {
        flex-direction: column;
    }

    .p20-coupon-form button {
        width: 100%;
        height: 46px;
    }

    .p20-reviews-section {
        padding: 18px;
        border-radius: 24px;
    }

    .p20-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .p20-review-card > div:first-child {
        flex-direction: column;
    }

    .p20-product-extra-actions a {
        min-width: 100%;
    }
}