
/* =============================================================================
   PAMELA SHOP — CART PAGE ONLY
   این فایل فقط ظاهر صفحه سبد خرید را کنترل می‌کند.
   به هدر، کارت محصول، پرداخت، Wishlist و قابلیت‌های قبلی دست نمی‌زند.
============================================================================= */

.cart-page-hero{
    position:relative; overflow:hidden; padding:42px 0 40px;
    background:
      radial-gradient(circle at 12% 20%,rgba(104,197,178,.16),transparent 28%),
      radial-gradient(circle at 88% 72%,rgba(246,190,132,.18),transparent 30%),
      linear-gradient(135deg,#f4fbf8 0%,#f9f7fb 52%,#fff7f1 100%);
    border-bottom:1px solid #e7eee9;
}
.cart-page-hero:after{content:"";position:absolute;inset:auto -8% -90px;height:170px;border-radius:50%;background:rgba(255,255,255,.65);filter:blur(8px);}
.cart-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.35fr .65fr;align-items:center;gap:28px;min-height:250px}
.cart-hero-copy{max-width:720px}
.cart-hero-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid #e7eee9;color:#19826c;font-size:11px;font-weight:900;box-shadow:0 5px 16px rgba(30,80,68,.05)}
.cart-hero-copy h1{margin:14px 0 9px;font-size:clamp(26px,4vw,43px);line-height:1.35;color:#26343a;font-weight:950;letter-spacing:-.6px}
.cart-hero-copy p{margin:0;color:#69767b;font-size:13px;line-height:2;max-width:680px}
.cart-trust-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.cart-trust-row span{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.86);border:1px solid #e6eee9;border-radius:999px;padding:7px 11px;color:#536268;font-size:10px;font-weight:800}
.cart-trust-row b{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#e5f6f0;color:#19826c;font-size:10px}
.cart-hero-visual{position:relative;min-height:220px;display:grid;place-items:center}
.cart-hero-orbit{position:absolute;width:205px;height:205px;border-radius:50%;border:1px solid rgba(25,130,108,.12);box-shadow:0 0 0 20px rgba(25,130,108,.025),0 0 0 42px rgba(25,130,108,.018)}
.cart-hero-bag{position:relative;width:145px;height:145px;border-radius:34px;background:linear-gradient(145deg,#238b74,#176b5a);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#fff;box-shadow:0 22px 50px rgba(23,108,89,.22);transform:rotate(-4deg)}
.cart-hero-bag svg{width:62px;height:62px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.cart-hero-bag span{font-size:10px;font-weight:900;letter-spacing:.8px}
.cart-hero-check{position:absolute;right:calc(50% - 102px);bottom:35px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#19826c;font-weight:1000;box-shadow:0 10px 25px rgba(20,60,50,.13);border:1px solid #e8eee9}

.cart-layout{align-items:start}
.cart-summary{padding:22px !important;border-radius:22px !important;box-shadow:0 14px 40px rgba(32,45,50,.07) !important;border-color:#e6ecea !important;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%) !important}
.cart-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.cart-summary-head span{display:block;color:#19826c;font-size:10px;font-weight:900;margin-bottom:3px}
.cart-summary-head h2{margin:0!important;color:#26343a;font-size:23px!important;font-weight:950!important}
.cart-summary-badge{width:38px;height:38px;border-radius:12px;background:#e8f7f2;color:#19826c;display:grid;place-items:center;font-weight:1000}
.cart-summary-note{display:flex;align-items:flex-start;gap:9px;margin:0 0 8px;padding:11px 12px;border-radius:13px;background:#f5faf8;border:1px solid #e6f0ec;color:#667277;font-size:10px;line-height:1.9}
.cart-note-icon{flex:0 0 auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#19826c;font-weight:900}
.cart-summary p{color:#59666b!important}
.cart-summary p strong{color:#26343a;font-weight:950}
.cart-summary .summary-total{margin-top:4px;padding:14px 0;border-top:1px solid #e8eeeb!important;border-bottom:0!important;align-items:center}
.cart-summary .summary-total strong{font-size:22px;color:#19826c}
.cart-secure-line{display:flex;align-items:center;justify-content:center;gap:7px;margin:4px 0 11px;color:#718078;font-size:9px;font-weight:800}
.cart-checkout-btn,.cart-continue-btn{width:100%;min-height:48px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none!important;font-weight:900;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.cart-checkout-btn{background:linear-gradient(135deg,#238b74,#176c59);color:#fff!important;box-shadow:0 10px 22px rgba(23,108,89,.18)}
.cart-checkout-btn:hover{transform:translateY(-1px);box-shadow:0 14px 27px rgba(23,108,89,.23)}
.cart-checkout-btn b{font-size:17px}
.cart-continue-btn{margin-top:8px;background:#fff;color:#526168!important;border:1px solid #e2e9e6}
.cart-continue-btn:hover{background:#f6faf8;color:#19826c!important}
.coupon-box{background:#fbf7fa!important;border-color:#eee1e8!important;border-radius:16px!important}
.coupon-box h3{color:#526168!important;font-weight:900!important}
.coupon-form button{background:#d8a15e!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:900!important}
.coupon-form input{border-color:#e5e8e7!important}

@media(max-width:800px){
 .cart-page-hero{padding:28px 0 25px}
 .cart-hero-inner{grid-template-columns:1fr;min-height:0;text-align:center;gap:10px}
 .cart-hero-copy{margin:auto}
 .cart-hero-copy h1{font-size:27px;line-height:1.5}
 .cart-hero-copy p{font-size:11px}
 .cart-trust-row{justify-content:center}
 .cart-hero-visual{min-height:135px}
 .cart-hero-orbit{width:120px;height:120px}
 .cart-hero-bag{width:100px;height:100px;border-radius:25px}
 .cart-hero-bag svg{width:43px;height:43px}
 .cart-hero-bag span{font-size:8px}
 .cart-hero-check{right:calc(50% - 73px);bottom:15px;width:30px;height:30px}
 .cart-summary{padding:17px!important;border-radius:18px!important}
 .cart-summary-head h2{font-size:21px!important}
 .cart-summary .summary-total strong{font-size:20px}
}


/* =============================================================================
   CART HERO — LOGO + TYPOGRAPHY REFINEMENT
   این بخش فقط اصلاحات درخواست‌شده برای Hero سبد خرید است.
   استایل‌های قبلی عمداً حذف یا بازنویسی نشده‌اند.
============================================================================= */

/* تیتر Hero: کمی کوچک‌تر، ضخیم‌تر و خواناتر */
.cart-hero-copy h1{
    font-size:clamp(24px,3.15vw,35px) !important;
    line-height:1.42 !important;
    font-weight:900 !important;
    letter-spacing:-.35px !important;
}

/* لوگوی واقعی ارسالی کاربر، داخل یک قاب بسیار ظریف */
.cart-hero-logo-card{
    position:relative;
    z-index:2;
    width:148px;
    height:148px;
    padding:10px;
    display:grid;
    place-items:center;
    border-radius:34px;
    background:rgba(255,255,255,.74);
    border:1px solid rgba(255,255,255,.92);
    box-shadow:
        0 18px 42px rgba(38,55,61,.10),
        inset 0 0 0 1px rgba(230,236,233,.55);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    transform:rotate(-2deg);
    overflow:hidden;
}

.cart-hero-logo-card img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:26px;
    filter:saturate(.98);
}

@media(max-width:800px){
    .cart-hero-copy h1{
        font-size:25px !important;
        line-height:1.5 !important;
        font-weight:900 !important;
    }

    .cart-hero-logo-card{
        width:106px;
        height:106px;
        padding:7px;
        border-radius:25px;
    }

    .cart-hero-logo-card img{
        border-radius:20px;
    }
}

@media(max-width:380px){
    .cart-hero-copy h1{
        font-size:23px !important;
    }

    .cart-hero-logo-card{
        width:94px;
        height:94px;
    }
}


/* =============================================================================
   CART HERO — SHOPPING CART VISUAL
   فقط جایگزین المان لوگوی قبلی در Hero است.
   سایر استایل‌های Cart دست‌نخورده باقی می‌مانند.
============================================================================= */

.cart-hero-shopping-cart{
    position:relative;
    z-index:3;
    width:156px;
    height:146px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    border-radius:34px;
    color:#ffffff;
    background:
        linear-gradient(145deg,
            rgba(255,255,255,.94),
            rgba(255,255,255,.70)
        );
    border:1px solid rgba(255,255,255,.96);
    box-shadow:
        0 20px 44px rgba(32,50,57,.10),
        inset 0 1px 0 rgba(255,255,255,.95);
    transform:rotate(-2deg);
    overflow:hidden;
}

.cart-hero-cart-glow{
    position:absolute;
    width:118px;
    height:70px;
    left:50%;
    top:18px;
    transform:translateX(-50%);
    border-radius:50%;
    background:rgba(34,139,116,.08);
    filter:blur(14px);
    pointer-events:none;
}

.cart-hero-cart-icon{
    position:relative;
    z-index:2;
    width:72px;
    height:72px;
    color:#208b73;
    filter:drop-shadow(0 8px 12px rgba(32,139,115,.13));
}

.cart-hero-shopping-cart-brand{
    position:relative;
    z-index:2;
    color:#34434a;
    font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif;
    font-size:13px;
    font-weight:950;
    letter-spacing:-.2px;
    line-height:1.3;
    white-space:nowrap;
}

@media(max-width:800px){
    .cart-hero-shopping-cart{
        width:112px;
        height:106px;
        border-radius:26px;
        gap:3px;
    }

    .cart-hero-cart-icon{
        width:53px;
        height:53px;
    }

    .cart-hero-shopping-cart-brand{
        font-size:10px;
    }

    .cart-hero-cart-glow{
        width:84px;
        height:54px;
        top:12px;
    }
}

@media(max-width:380px){
    .cart-hero-shopping-cart{
        width:100px;
        height:96px;
        border-radius:23px;
    }

    .cart-hero-cart-icon{
        width:48px;
        height:48px;
    }

    .cart-hero-shopping-cart-brand{
        font-size:9px;
    }
}


/* =============================================================================
   CART HERO — EMPTY → FILLING → CONFIRMED
   فقط انیمیشن Hero سبد خرید؛ سایر Cart styles دست‌نخورده‌اند.
============================================================================= */

.cart-hero-cart-stage{
    position:relative;
    width:78px;
    height:78px;
    display:grid;
    place-items:center;
}

.cart-hero-cart-icon{
    position:relative;
    z-index:2;
    width:72px;
    height:72px;
    color:#208b73;
    filter:drop-shadow(0 8px 12px rgba(32,139,115,.13));
    animation: pamelaCartEmptyToReady 6s ease-in-out infinite;
}

.cart-hero-item{
    position:absolute;
    z-index:3;
    width:12px;
    height:10px;
    border-radius:3px;
    background:linear-gradient(145deg,#f1b34c,#d99220);
    box-shadow:0 3px 7px rgba(180,120,25,.16);
    opacity:0;
    transform:translateY(-24px) scale(.65);
    animation:pamelaCartItemFill 6s ease-in-out infinite;
}

.cart-hero-item-1{ left:31px; top:36px; animation-delay:.05s; }
.cart-hero-item-2{ left:43px; top:32px; width:13px; height:11px; animation-delay:.18s; }
.cart-hero-item-3{ left:36px; top:28px; width:11px; height:9px; animation-delay:.31s; }

.cart-hero-confirm{
    position:absolute;
    z-index:5;
    right:-8px;
    bottom:-4px;
    width:31px;
    height:31px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#2b8fd6;
    color:#fff;
    border:3px solid rgba(255,255,255,.96);
    box-shadow:0 8px 18px rgba(43,143,214,.25);
    font-family:"Times New Roman",Times,serif !important;
    font-size:18px;
    font-weight:900;
    opacity:0;
    transform:scale(.55) rotate(-18deg);
    animation:pamelaCartConfirm 6s ease-in-out infinite;
}

@keyframes pamelaCartEmptyToReady{
    0%,24%{ transform:translateY(0) scale(1); }
    31%{ transform:translateY(-2px) scale(1.015); }
    42%,68%{ transform:translateY(0) scale(1); }
    73%{ transform:translateY(-1px) scale(1.01); }
    100%{ transform:translateY(0) scale(1); }
}

@keyframes pamelaCartItemFill{
    0%,25%{
        opacity:0;
        transform:translateY(-25px) scale(.6);
    }
    34%{
        opacity:1;
        transform:translateY(-2px) scale(1);
    }
    42%,70%{
        opacity:1;
        transform:translateY(0) scale(1);
    }
    76%,100%{
        opacity:0;
        transform:translateY(0) scale(.8);
    }
}

@keyframes pamelaCartConfirm{
    0%,67%{
        opacity:0;
        transform:scale(.55) rotate(-18deg);
    }
    75%{
        opacity:1;
        transform:scale(1.12) rotate(0);
    }
    81%,91%{
        opacity:1;
        transform:scale(1) rotate(0);
    }
    100%{
        opacity:0;
        transform:scale(.85) rotate(0);
    }
}

@media(max-width:800px){
    .cart-hero-cart-stage{
        width:58px;
        height:58px;
    }

    .cart-hero-cart-icon{
        width:53px;
        height:53px;
    }

    .cart-hero-item{
        width:9px;
        height:8px;
    }

    .cart-hero-item-1{left:23px;top:27px}
    .cart-hero-item-2{left:32px;top:24px;width:10px;height:9px}
    .cart-hero-item-3{left:27px;top:21px;width:9px;height:7px}

    .cart-hero-confirm{
        right:-7px;
        bottom:-5px;
        width:24px;
        height:24px;
        border-width:2px;
        font-size:14px;
    }
}

/* کاربرانی که کاهش حرکت را ترجیح می‌دهند، نسخه ثابت و آرام می‌بینند. */
@media(prefers-reduced-motion:reduce){
    .cart-hero-cart-icon,
    .cart-hero-item,
    .cart-hero-confirm{
        animation:none !important;
    }

    .cart-hero-confirm{
        opacity:1 !important;
        transform:none !important;
    }

    .cart-hero-item{
        opacity:1 !important;
        transform:none !important;
    }
}
