/* ============================================
   Pouya Cart v5 - Clean & Minimal
   ============================================ */

.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper + form,
.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .woocommerce > .cart-empty,
.woocommerce-cart .woocommerce > .return-to-shop,
.woocommerce-cart .cross-sells {
    display: none !important;
}

/* Base */
.pc-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 100px;
    direction: rtl;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: #1f2937;
    background: #F9FAFB;
    min-height: 60vh;
}

.pc-wrap *, .pc-wrap *::before, .pc-wrap *::after {
    box-sizing: border-box;
}

/* ============================================
   STEPS - Beautiful Progress Bar
   ============================================ */
.pc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 24px 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    gap: 0;
}

.pc-st {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.pc-st-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    background: #f3f4f6;
    color: #9ca3af;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.pc-st-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4cb050;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(76,176,80,0.3);
}

.pc-st-txt {
    font-size: 18px;
    font-weight: 600;
    color: #b0b5bf;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.pc-st-txt-on {
    font-weight: 900;
    color: #1f2937;
    font-size: 20px;
}

/* Progress Line */
.pc-st-line {
    width: 80px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 16px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.pc-st-line-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: #4cb050;
    border-radius: 10px;
}

/* ============================================
   GRID
   ============================================ */
.pc-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pc-col-right {
    flex: 1;
    min-width: 0;
}

.pc-col-left {
    width: 340px;
    flex-shrink: 0;
}

/* ============================================
   PRODUCT CARD - Clean
   ============================================ */
.pc-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pc-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}

.pc-card-removing {
    opacity: 0;
    transform: translateX(30px);
    max-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.pc-card-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    position: relative;
}

/* Image */
.pc-card-img {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.pc-card-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.pc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s;
}

.pc-card-img:hover img {
    transform: scale(1.04);
}

/* Body */
.pc-card-body {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.pc-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.pc-card-title a {
    color: #1f2937;
    text-decoration: none;
}

.pc-card-title a:hover {
    color: #4cb050;
}

.pc-card-price {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.pc-card-price .woocommerce-Price-amount {
    font-weight: 800;
    font-size: 17px;
    color: #111827;
}

.pc-card-price .woocommerce-Price-currencySymbol {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
}

/* Delete - Left Bottom */
.pc-card-actions {
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
    flex-shrink: 0;
}

.pc-card-del {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.pc-card-del:hover {
    color: #ef4444;
    background: #fef2f2;
}

.pc-card-del svg {
    width: 18px;
    height: 18px;
}

/* Add More */
.pc-add-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 4px;
    cursor: pointer;
}

.pc-add-more:hover {
    border-color: #4cb050;
    color: #4cb050;
    background: #f0fdf4;
}

.pc-add-off {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   SUMMARY
   ============================================ */
.pc-summary {
    background: #fff;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    position: sticky;
    top: 24px;
}

.pc-sum-title {
    font-size: 17px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 18px 0;
    text-align: center;
}

.pc-sum-items {
    margin-bottom: 12px;
}

.pc-sum-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    gap: 10px;
}

.pc-si-name {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    flex: 1;
    line-height: 1.6;
}

.pc-si-price {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.pc-sum-line {
    height: 1px;
    background: #f3f4f6;
    margin: 4px 0 14px;
}

/* Total */
.pc-sum-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pc-sum-total-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.pc-sum-total-price,
.pc-sum-total-price .woocommerce-Price-amount {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #111827 !important;
}

.pc-sum-total-price .woocommerce-Price-currencySymbol {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
}

.pc-sum-discount-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #6b7280;
}

.pc-sum-discount-val {
    color: #4cb050 !important;
    font-weight: 700;
}

/* CTA Button - Elegant */
.pc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #4cb050;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    margin: 18px 0 0;
    transition: all 0.25s;
    box-shadow: 0 3px 0 #3d8b40;
    position: relative;
    top: 0;
    letter-spacing: 0.2px;
}

.pc-cta:hover {
    background: #43a047;
    color: #fff;
    top: 2px;
    box-shadow: 0 1px 0 #2e7d32, 0 4px 14px rgba(76,176,80,0.2);
}

.pc-cta:active {
    top: 3px;
    box-shadow: 0 0 0 #2e7d32;
}

.pc-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pcSpin5 0.5s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes pcSpin5 {
    to { transform: rotate(360deg); }
}

/* Trust */
.pc-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px 0;
    margin-top: 14px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.pc-trust span {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Coupon */
.pc-coupon-wrap {
    margin-top: 14px;
    text-align: center;
}

.pc-coupon-toggle {
    display: inline-block;
    font-size: 13px;
    color: #4cb050;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.pc-coupon-toggle:hover {
    color: #3d8b40;
    text-decoration: underline;
}

.pc-coupon-box {
    display: none;
    margin-top: 12px;
    text-align: right;
}

.pc-coupon-form {
    display: flex;
    gap: 8px;
}

.pc-coupon-field {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
    background: #fafafa;
}

.pc-coupon-field:focus {
    border-color: #4cb050;
    background: #fff;
}

.pc-coupon-field::placeholder {
    color: #d1d5db;
}

.pc-coupon-submit {
    background: #999;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pc-coupon-submit:hover {
    background: #777;
}

.pc-coupon-msg {
    margin-top: 6px;
    font-size: 12px;
}

.pc-msg-ok { color: #4cb050; font-weight: 600; }
.pc-msg-err { color: #ef4444; font-weight: 600; }

.pc-coupon-applied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    color: #065f46;
    font-weight: 600;
    margin-top: 8px;
}

.pc-coupon-rm {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

/* ============================================
   MOBILE BAR
   ============================================ */
.pc-mob-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 18px;
    box-shadow: 0 -3px 16px rgba(0,0,0,0.06);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
}

.pc-mob-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pc-mob-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
}

.pc-mob-amount {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.pc-mob-amount .woocommerce-Price-amount {
    font-weight: 900;
    font-size: 18px;
}

.pc-mob-btn {
    background: #4cb050;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 0 #3d8b40;
}

.pc-mob-btn:hover {
    background: #43a047;
    color: #fff;
}

/* ============================================
   EMPTY
   ============================================ */
.pc-empty {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.pc-empty h2 {
    font-size: 20px;
    font-weight: 800;
    color: #374151;
    margin: 18px 0 6px;
}

.pc-empty p {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
}

.pc-btn-go {
    display: inline-block;
    background: #4cb050;
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 3px 0 #3d8b40;
}

.pc-btn-go:hover {
    background: #43a047;
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 960px) {
    .pc-grid { flex-direction: column; }
    .pc-col-left { width: 100%; }
    .pc-summary { position: static; }
    .pc-mob-bar { display: flex; }
    .pc-wrap { padding-bottom: 100px; }
}

@media screen and (max-width: 640px) {
    .pc-wrap { padding: 14px 12px 110px; }

    .pc-steps { padding: 16px 14px; }

    .pc-st-txt { font-size: 13px; }
    .pc-st-txt-on { font-size: 15px; }
    .pc-st-num, .pc-st-icon { width: 34px; height: 34px; font-size: 14px; }
    .pc-st-icon svg { width: 16px; height: 16px; }
    .pc-st-line { width: 30px; margin: 0 8px; }

    .pc-card-inner {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 12px;
    }

    .pc-card-img { width: 72px; height: 72px; }

    .pc-card-title { font-size: 14px; }

    .pc-card-price,
    .pc-card-price .woocommerce-Price-amount { font-size: 15px !important; }

    .pc-card-actions {
        position: absolute;
        bottom: 14px;
        left: 16px;
    }

    .pc-sum-total-price,
    .pc-sum-total-price .woocommerce-Price-amount { font-size: 20px !important; }

    .pc-cta { font-size: 14px; padding: 12px; }

    .pc-coupon-form { flex-direction: column; }
    .pc-coupon-submit { width: 100%; }

    .pc-add-more { width: 100%; justify-content: center; font-size: 12px; }
}

@media screen and (max-width: 400px) {
    .pc-mob-btn { padding: 10px 16px; font-size: 13px; }
    .pc-mob-amount { font-size: 16px; }
}