/* ===================================================================
   CSS نهایی برای حساب کاربری (حفظ دسکتاپ + طراحی جدید موبایل)
   =================================================================== */

/* ===== 1. استایل‌های دسکتاپ (حالت پیش‌فرض برای عرض بالای 992px) ===== */
body.woocommerce-account .gk-container {
    max-width: var(--container-max-width, 1600px);
    margin-inline: auto;
    padding-inline: clamp(15px, 3vw, 24px);
    margin-bottom: 40px;
}

body.woocommerce-account .gk-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

body.woocommerce-account .gk-account__nav {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    z-index: 10;
}

body.woocommerce-account .gk-account__content {
    flex: 1 1 auto;
    min-width: 0;
}

body.woocommerce-account .gk-account__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

body.woocommerce-account .gk-account__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.gk-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 700; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all 0.2s ease; }
.gk-btn-primary { background: #ef394e; color: #fff; border-color: #ef394e; }
.gk-btn-primary:hover { background: #d63346; border-color: #d63346; }
.gk-btn-ghost { background: #fff; color: #111; border-color: #e5e7eb; }
.gk-btn-ghost:hover { background: #f8fafc; border-color: #d1d5db; }

/* منوی سایدبار دسکتاپ */
.gk-account__nav .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.gk-account__nav .woocommerce-MyAccount-navigation li { margin: 4px 0; }
.gk-account__nav .woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: #374151; text-decoration: none; font-weight: 500; }
.gk-account__nav .woocommerce-MyAccount-navigation a:hover { background: #f3f4f6; color: #111827; }
.gk-account__nav .is-active a { background: #eef2ff; color: #4338ca; font-weight: 700; }
.gk-account__nav .dashicons { font-size: 20px; }
.gk-nav-badge { margin-inline-start: auto; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }

/* کارت‌های داشبورد دسکتاپ */
.gk-grid { display: grid; gap: 24px; grid-template-columns: repeat(12, 1fr); }
.gk-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.gk-card-head { padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.gk-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.gk-card-body { padding: 20px; }

.gk-dashboard .gk-card--orders { grid-column: 1 / -1; }
.gk-dashboard .gk-grid > .gk-card:nth-child(2) { grid-column: span 6; }
.gk-dashboard .gk-grid > .gk-card:nth-child(3) { grid-column: span 6; }
.gk-dashboard .gk-grid > .gk-card:nth-child(4) { grid-column: span 8; }
.gk-dashboard .gk-grid > .gk-card:nth-child(5) { grid-column: span 4; }

.gk-profile { display: flex; gap: 12px; align-items: center; }
.gk-avatar { width: 48px; height: 48px; border-radius: 12px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.gk-actions { display: flex; gap: 8px; margin-top: 16px; }

.gk-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.gk-shortcut { border: 1px dashed #e5e7eb; border-radius: 10px; padding: 16px 8px; text-decoration: none; color: #111827; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; font-weight: 500; text-align: center; }
.gk-shortcut:hover { background: #f8fafc; }

.gk-addresses { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; }
.gk-addresses .gk-btn { width: 100%; grid-column: 1 / -1; margin-top: 8px; }
.gk-address { background: #f8fafc; border: 1px dashed #e5e7eb; border-radius: 10px; padding: 12px; min-height: 100px; }
.gk-muted { color: #94a3b8; }

.gk-card--orders .gk-card-head { display: flex; align-items: center; justify-content: space-between; }
.gk-stats { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 16px; }
.gk-stat-item { display: flex; align-items: center; gap: 12px; }
.gk-stat-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; font-size: 22px; color: #4b5563; }
.gk-stat-value { font-weight: 700; }
.gk-stat-label { font-size: 13px; color: #6b7280; }

.gk-only-mobile, .gk-account__nav-close { display: none; }


/* ===== 2. استایل‌های موبایل (نقطه شکست 992px به پایین) ===== */
@media (max-width: 992px) {
    /* بازنویسی ساختار کلی برای موبایل */
    body.woocommerce-account .gk-row {
        display: block; /* ستون‌ها زیر هم */
    }

    body.woocommerce-account .gk-account__title {
        font-size: 18px;
        text-align: center;
        width: 100%;
        padding: 0 15px;
    }

    body.woocommerce-account .gk-account__header .gk-only-mobile {
        display: none;
    }

    /* تغییر ظاهر منوی سایدبار به منوی لیستی در موبایل */
    body.woocommerce-account .gk-account__nav {
        flex: none;
        position: static;
        width: 100%;
        margin-top: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border-radius: 16px;
    }

    .gk-account__nav .woocommerce-MyAccount-navigation a {
        justify-content: space-between;
        padding: 14px 12px;
        border-bottom: 1px solid #f3f4f6;
        border-radius: 0;
    }
    .gk-account__nav .woocommerce-MyAccount-navigation li:first-child a { border-radius: 10px 10px 0 0; }
    .gk-account__nav .woocommerce-MyAccount-navigation li:last-child a { border-bottom: none; border-radius: 0 0 10px 10px; }
    .gk-account__nav .woocommerce-MyAccount-navigation a::after { content: '<'; font-family: sans-serif; color: #cbd5e1; font-weight: 700; }
    .gk-account__nav .is-active a { background: #fff; font-weight: 700; color: #1e40af; }
    .gk-account__nav .is-active .dashicons { color: #1e40af; }
    .gk-nav-badge { background-color: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; margin-right: 8px; }

    /* طراحی جدید آمار سفارش‌ها در موبایل */
    .gk-dashboard {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    .gk-dashboard .gk-card {
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    .gk-dashboard .gk-card-body { padding: 0; }
    .gk-dashboard .gk-grid { display: block; }
    .gk-card--orders .gk-card-title { font-size: 16px; font-weight: 700; position: relative; padding-bottom: 4px; }
    .gk-card--orders .gk-card-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 3px; background-color: #ef4444; }
    .gk-card--orders .gk-link-all { font-size: 13px; color: #0ea5e9; text-decoration: none; font-weight: 500; }
    .gk-card--orders .gk-card-head { margin-bottom: 20px; padding: 0; border: none; }
    .gk-stats { grid-template-columns: repeat(3, 1fr); text-align: center; gap: 10px; }
    .gk-stat-item { flex-direction: column; gap: 8px; justify-content: flex-start; }
    .gk-stat-icon-wrapper { position: relative; width: 64px; height: 64px; }
    .gk-stat-icon-wrapper img { width: 100%; height: 100%; }
    .gk-stat-badge { position: absolute; top: 0; left: 0; background-color: #f1f5f9; color: #475569; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; border: 2px solid #fff; }
    .gk-stat-label { font-size: 13px; color: #64748b; }

    /* مخفی کردن کارت‌های داشبورد در صفحات دیگر (موبایل) */
    body.woocommerce-account:not(.is-page-dashboard) .gk-dashboard {
        display: none;
    }
    body.woocommerce-account:not(.is-page-dashboard) .gk-account__nav {
        margin-top: 0;
    }
}

/* ===== 3. استایل‌های بخش‌های دیگر (مشترک) ===== */
.gk-notice { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fff; }
.gk-notice.unread { border-color: #c7d2fe; background: #eef2ff4d; }
.gk-notice__head { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gk-notice__title { margin: 0; font-size: 14px; }
.gk-security { display: flex; align-items: center; gap: 12px; }
body.woocommerce-account footer .container { max-width: none; width: 100%; }





/* ===================================================================
   CSS دقیق و بازنویسی شده برای صفحه تاریخچه سفارشات
   =================================================================== */

:root {
    --gk-red: #ef4056;
    --gk-text-dark: #3f4064;
    --gk-text-light: #81858b;
    --gk-border-color: #e0e0e2;
    --gk-bg-light: #f5f5f5;
    --gk-green: #25ae88;
    --gk-blue-link: #19bfd3;
    --gk-yellow-points: #f9bc00;
}


/* --- Toolbar: Tabs + Search Icon --- */
.gk-orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid var(--gk-border-color);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gk-orders-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
}

.gk-orders-tabs li {
    padding: 14px 0;
    position: relative;
    margin-bottom: -1px;
    flex-shrink: 0;
}

.gk-orders-tabs a {
    text-decoration: none;
    color: var(--gk-text-light);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.gk-orders-tabs .is-active a {
    color: var(--gk-red);
    font-weight: 700;
}

.gk-orders-tabs .is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gk-red);
}

.gk-badge {
    background-color: #efefef;
    color: var(--gk-text-light);
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.gk-orders-search-icon {
    color: var(--gk-text-light);
    cursor: pointer;
}
.gk-orders-search-icon svg {
    display: block;
}

/* --- Order List & Cards --- */
.gk-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.gk-order-card {
    background: #fff;
    border: 1px solid #f0f0f1;
    border-radius: 8px;
}

/* 1. Card Header */
.gk-order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}
.gk-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gk-status-icon {
    width: 20px;
    height: 20px;
    fill: var(--gk-green);
}
.gk-status-text {
    font-weight: 700;
    font-size: 14px;
    color: var(--gk-text-dark);
}
.gk-head-open {
    font-size: 24px;
    font-weight: 300;
    color: var(--gk-text-light);
    text-decoration: none;
}

/* 2. Card Details */
.gk-order-details {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gk-order-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 12px;
    color: var(--gk-text-light);
}
.gk-order-meta-line .gk-sep {
    font-size: 10px;
}
.gk-order-meta-line bdi {
    color: var(--gk-text-dark);
    font-weight: 500;
}
.gk-discount-meta bdi {
    color: var(--gk-red) !important;
}
.gk-order-points-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gk-text-light);
}
.gk-order-points-line .gk-points-icon {
    color: var(--gk-yellow-points);
}
.gk-order-points-line strong {
    color: var(--gk-text-dark);
    font-weight: 700;
}

/* 3. Card Body (Products) */
.gk-order-body {
    padding: 16px;
    border-top: 1px solid #f0f0f1;
}
.is-single-item {
    display: flex;
    justify-content: flex-start;
}
.is-single-item .gk-item-thumb-large img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.is-multi-item .gk-items-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px; /* For scrollbar */
}
.gk-items-strip::-webkit-scrollbar { height: 3px; }
.gk-items-strip::-webkit-scrollbar-thumb { background: #e0e0e2; border-radius: 2px; }
.gk-item-thumb img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border: 1px solid #f0f0f1;
    border-radius: 8px;
    flex-shrink: 0;
}
.gk-more-tile {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed #c3c3c3;
    background-color: #fafafa;
    font-weight: 700;
    color: var(--gk-text-dark);
    font-size: 14px;
    flex-shrink: 0;
}

/* 4. Card Footer */
.gk-order-foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f1;
}
.gk-invoice-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gk-blue-link);
    font-size: 13px;
    font-weight: 500;
}
.gk-invoice-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}





/* ==========================
   GK Orders — Icons & Pagination Styles
   ========================== */
.gk-orders-page{
    --gk-green: #22c55e;   /* completed */
    --gk-amber: #f59e0b;   /* processing/on-hold */
    --gk-blue:  #3b82f6;   /* refunded */
    --gk-red:   #ef4444;   /* cancelled/failed */
    --gk-text:  #111827;
    --gk-muted: #6b7280;
    --gk-border:#e5e7eb;
    --gk-bg:    #ffffff;
}

/* ---------- Status line & icons ---------- */
.gk-status-line{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gk-text);
}

.gk-status-icon{
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 20px;
}
.gk-status-icon path{
    fill: currentColor; /* رنگ را از color والد می‌گیرد */
}

/* رنگ‌بندی وضعیت‌ها */
.gk-status-icon.is-completed{ color: var(--gk-green); }
.gk-status-icon.is-active{    color: var(--gk-amber); }
.gk-status-icon.is-refunded{  color: var(--gk-blue);  }
.gk-status-icon.is-cancelled{ color: var(--gk-red);   }

/* افکت لطیف برای سفارش‌های درحال پردازش/معلق */
@keyframes gk-pulse { 0%,100%{opacity:1} 50%{opacity:.55} }
.gk-status-icon.is-active{ animation: gk-pulse 1.8s ease-in-out infinite; }

/* متن وضعیت */
.gk-status-text{
    font-weight: 600;
    line-height: 1;
}

/* ---------- Pagination ---------- */
.gk-pagination{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--gk-bg);
    border: 1px solid var(--gk-border);
    border-radius: 8px;
}

.gk-pagination-list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.gk-page-item a,
.gk-page-item span{
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--gk-border);
    text-decoration: none;
    color: var(--gk-text);
    font-weight: 500;
    line-height: 1;
    background: #fff;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

/* حالت فعال (همان صفحهٔ جاری) */
.gk-page-item.is-active span{
    color: #fff;
    background: var(--gk-blue);
    border-color: var(--gk-blue);
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}

/* هاور / فوکوس روی لینک‌های صفحه‌بندی */
.gk-page-item a:hover,
.gk-page-item a:focus{
    color: var(--gk-blue);
    border-color: var(--gk-blue);
    outline: none;
}

/* اگر خواستید آیتم غیرفعال داشته باشید (مثلاً وقتی دکمه قبلی/بعدی نمایش می‌دهید ولی غیرفعال است) */
.gk-page-item.is-disabled a,
.gk-page-item.is-disabled span{
    pointer-events: none;
    opacity: .45;
}

/* اطلاعات بازهٔ آیتم‌ها */
.gk-pagination-info{
    color: var(--gk-muted);
    font-size: 12px;
}

/* ---------- Misc (جزییات ظاهری کارت‌ها) ---------- */
.gk-order-card{
    background: #fff;
    border: 1px solid var(--gk-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.gk-order-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gk-head-open{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
}
.gk-head-open:hover{ color: var(--gk-blue); border-color: var(--gk-blue); }

.gk-order-meta-line{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--gk-muted);
    font-size: 14px;
}
.gk-order-meta-line .gk-sep{ opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 600px){
    .gk-pagination{
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .gk-pagination-list{
        flex-wrap: wrap;
        justify-content: center;
    }
    .gk-pagination-info{
        text-align: center;
    }
}


.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
}







@media (max-width: 768px) {
    .woocommerce-account table.woocommerce-orders-table thead { display: none; }
    .woocommerce-account table.woocommerce-orders-table tr { display: block; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fff; }
    .woocommerce-account table.woocommerce-orders-table td { display: flex; justify-content: space-between; gap: 8px; border: 0; padding: 6px 0; }
    .woocommerce-account table.woocommerce-orders-table td:before { content: attr(data-title); color: #64748b; font-size: 12px; }
    .gk-orders-toolbar { flex-direction: column; align-items: stretch; }
}















/* ===== Addresses (Digikala-like) ===== */
.gk-addr-head{display:flex;align-items:center;justify-content:space-between}
.gk-btn-link{background:transparent;border:0;color:#ef394e;font-weight:800;cursor:pointer}
.gk-address-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.gk-address{position:relative;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;background:#fff}
.gk-address.is-default{border-color:#60a5fa}
.gk-addr-line{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px}
.gk-addr-pin{width:18px;height:18px;border-radius:50%;border:2px solid #94a3b8;position:relative;top:2px}
.gk-addr-pin::after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#94a3b8;left:50%;top:50%;transform:translate(-50%,-50%)}
.gk-addr-text{font-weight:700}
.gk-addr-meta{display:flex;flex-wrap:wrap;gap:8px;color:#64748b;font-size:13px;margin-bottom:8px}
.gk-addr-badge{position:absolute;top:10px;left:14px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:800}
.gk-addr-actions{display:flex;gap:12px}
.gk-link{background:none;border:0;color:#0ea5e9;cursor:pointer;font-weight:700;text-decoration:none}
.gk-link:hover{text-decoration:underline}

/* Modal */
.gk-modal[hidden]{display:none}
.gk-modal__backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);backdrop-filter:saturate(120%) blur(1px)}
.gk-modal__dialog{position:fixed;inset-inline:0;top:10vh;margin-inline:auto;max-width:720px;background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.15);padding:0 16px 16px;z-index:1000}
.gk-modal__head{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.gk-modal__close{background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:#64748b}
.gk-form label{display:block;margin-bottom:10px}
.gk-form input[type="text"], .gk-form input[type="tel"], .gk-form textarea{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px}
.gk-row-2{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.gk-row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.gk-check{display:flex;align-items:center;gap:8px;margin-top:6px}
.gk-modal__foot{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}
@media (max-width:720px){ .gk-modal__dialog{margin:0 10px;top:6vh} .gk-row-2,.gk-row-3{grid-template-columns:1fr} }












/* ===========================
   Wishlist Cards – Digi-style
   =========================== */

:root {
    --gk-border: #e5e7eb;
    --gk-border-strong: #dbe3ea;
    --gk-bg: #fff;
    --gk-bg-soft: #f8fafc;
    --gk-text: #0f172a;
    --gk-text-weak: #64748b;
    --gk-text-mute: #94a3b8;
    --gk-primary: #1d4ed8;
    --gk-danger: #ef4444;
    --gk-success: #059669;
    --gk-shadow: 0 6px 18px rgba(16,24,40,.06);
    --gk-shadow-hover: 0 10px 24px rgba(16,24,40,.10);
}

/* گرید واکنش‌گرا و فشرده */
.gk-wl-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap:14px;
}

@media (min-width:1280px){
    .gk-wl-grid{ gap:16px; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width:480px){
    .gk-wl-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
}

/* کارت محصول */
.gk-wl-card{
    position:relative;
    display:flex;
    flex-direction:column;
    background:var(--gk-bg);
    border:1px solid var(--gk-border);
    border-radius:16px;
    padding:12px;
    box-shadow:var(--gk-shadow);
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    overflow:hidden;
}
.gk-wl-card:hover{
    border-color:var(--gk-border-strong);
    transform:translateY(-2px);
    box-shadow:var(--gk-shadow-hover);
}
.gk-wl-card:focus-within{
    outline:2px solid rgba(29,78,216,.25);
    outline-offset:2px;
}

/* تصویر با نسبت 1:1 و نمایش تمیز (مشابه دیجی‌کالا) */
.gk-wl-thumb{
    width:100%;
    aspect-ratio:1/1;
    background:var(--gk-bg-soft);
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-bottom:10px;
}
.gk-wl-thumb img{
    width:90%;
    height:90%;
    object-fit:contain;      /* تصویر بدون برش */
    image-rendering:auto;
    transition:transform .25s ease;
}
.gk-wl-card:hover .gk-wl-thumb img{ transform:scale(1.03); }

/* اطلاعات */
.gk-wl-info{
    display:flex;
    flex-direction:column;
    gap:6px;
    flex:1;
    min-width:0;
}

/* عنوان دوخطی با clamp */
.gk-wl-title{
    color:var(--gk-text);
    font-weight:800;
    line-height:1.6;
    text-decoration:none;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    min-height:3.1em; /* ارتفاع دو خط */
}

/* متا و قیمت‌ها */
.gk-wl-meta{
    margin-top:auto;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
}

/* قیمت: پشتیبانی از <ins>/<del> ووکامرس و متن ساده */
.gk-wl-price{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    font-weight:800;
    color:var(--gk-text);
}
.gk-wl-price del{
    order:-1;
    font-size:12px;
    color:var(--gk-text-mute);
    text-decoration:line-through;
}
.gk-wl-price ins{
    text-decoration:none;
    font-weight:900;
    font-size:15px;
    color:var(--gk-text);
}

/* برچسب موجود/ناموجود (پیل ظریف) */
.gk-wl-stock{
    font-size:12px;
    font-weight:800;
    padding:4px 8px;
    border-radius:999px;
    white-space:nowrap;
    border:1px solid transparent;
}
.gk-wl-stock.in{
    color:var(--gk-success);
    background:rgba(5,150,105,.07);
    border-color:rgba(5,150,105,.18);
}
.gk-wl-stock.out{
    color:var(--gk-danger);
    background:rgba(239,68,68,.07);
    border-color:rgba(239,68,68,.18);
}

/* دکمه حذف: دایره‌ای و ظریف – روی hover کارت ظاهر می‌شود */
.gk-wl-remove{
    position:absolute;
    top:8px;
    left:8px;  /* RTL */
    width:32px;
    height:32px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid var(--gk-border);
    color:var(--gk-text-mute);
    font-size:18px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(16,24,40,.06);
    transition:all .18s ease;
    opacity:0;
    transform:translateY(-4px);
    pointer-events:none;
}
.gk-wl-card:hover .gk-wl-remove{
    opacity:1;
    transform:none;
    pointer-events:auto;
}
.gk-wl-remove:hover{
    color:var(--gk-danger);
    border-color:rgba(239,68,68,.45);
    background:#fff5f5;
}

/* وضعیت خالی/لودینگ */
.gk-empty, .gk-wl-loading{
    padding:22px;
    text-align:center;
    border:1px dashed var(--gk-border);
    border-radius:14px;
    background:#fff;
    color:var(--gk-text-weak);
}

/* ریز‌بهبودها برای موبایل */
@media (max-width:640px){
    .gk-wl-card{ padding:10px; border-radius:14px; }
    .gk-wl-thumb{ border-radius:10px; margin-bottom:8px; }
    .gk-wl-title{ -webkit-line-clamp:2; min-height:3.1em; }
    .gk-wl-remove{ top:6px; left:6px; width:28px; height:28px; font-size:16px; }
}

/* حالت‌های اختیاری اگر روزی امتیاز/نشان تخفیف اضافه شد (بدون وابستگی HTML) */
.gk-wl-badge{
    position:absolute; top:10px; right:10px;
    background:#fef3c7; color:#b45309;
    border:1px solid #fde68a; padding:2px 8px;
    border-radius:999px; font-size:11px; font-weight:800;
}
.gk-stars{ display:flex; gap:2px; font-size:12px; color:#f59e0b; }

