/* ===== Pickoship Winning Products Hub ===== */
.pks-hub { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Header */
.pks-hub-head { text-align: center; margin-bottom: 32px; }
.pks-hub-head h1 { font-size: 40px; font-weight: 700; color: #0A2540; margin: 0 0 8px; letter-spacing: -0.5px; }
.pks-hub-head p { font-size: 17px; color: #5c6b7a; margin: 0; }

/* Filters */
.pks-filters { background: #fff; border: 1px solid #eaedf0; border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(10,37,64,0.04); }
.pks-filter-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 11px 0; border-bottom: 1px solid #f4f6f8; }
.pks-filter-line:first-child { padding-top: 0; }
.pks-flabel { font-size: 12px; font-weight: 600; color: #8a97a5; width: 82px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.3px; padding-top: 8px; }

.pks-pill { background: #fff; border: 1px solid #dfe4e9; color: #37474f; padding: 6px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all .18s; font-weight: 500; }
.pks-pill:hover { border-color: #079C9C; color: #079C9C; }
.pks-pill.active { background: #079C9C; border-color: #079C9C; color: #fff; }

.pks-link { background: none; border: none; color: #5c6b7a; padding: 4px 10px; font-size: 14px; cursor: pointer; transition: color .15s; font-weight: 500; border-radius: 6px; }
.pks-link:hover { color: #079C9C; }
.pks-link.active { color: #079C9C; font-weight: 700; background: #e6f6f6; }

.pks-search-row { display: flex; gap: 10px; margin-top: 14px; padding-top: 4px; }
.pks-cat-wrap { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; padding-top: 2px; }
.pks-search-row input { flex: 1; border: 1px solid #dfe4e9; border-radius: 10px; padding: 11px 16px; font-size: 15px; outline: none; transition: border .15s; }
.pks-search-row input:focus { border-color: #079C9C; }
.pks-search-row button { background: #0A2540; color: #fff; border: none; border-radius: 10px; padding: 0 28px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.pks-search-row button:hover { background: #079C9C; }

/* Count */
.pks-count { font-size: 14px; color: #8a97a5; margin: 0 4px 18px; font-weight: 500; }

/* Grid */
.pks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; min-height: 200px; position: relative; }
.pks-grid.loading { opacity: .45; pointer-events: none; }

/* Card */
.pks-card { background: #fff; border: 1px solid #eaedf0; border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.pks-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,37,64,0.12); }

.pks-card-media { position: relative; aspect-ratio: 1/1; background: #f4f6f8; overflow: hidden; }
.pks-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.pks-card:hover .pks-card-media img { transform: scale(1.05); }

.pks-plat-pill { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #0A2540; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* Hover action layer */
.pks-card-hover { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,37,64,0.82) 0%, rgba(10,37,64,0.15) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; padding: 20px; opacity: 0; transition: opacity .22s; }
.pks-card:hover .pks-card-hover { opacity: 1; }
.pks-hover-btn { display: block; width: 100%; text-align: center; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .12s; }
.pks-hover-btn:hover { transform: scale(1.02); }
.pks-hover-btn.primary { background: #FF6B35; color: #fff !important; }
.pks-hover-btn.ghost { background: rgba(255,255,255,0.95); color: #0A2540 !important; }

/* Card body — compact */
.pks-card-body { padding: 11px 13px 12px; display: flex; flex-direction: column; flex: 1; }
.pks-card-title { font-size: 13px; line-height: 1.35; margin: 0 0 9px; height: 35px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pks-card-title a { color: #0A2540; text-decoration: none; }
.pks-card-title a:hover { color: #079C9C; }

/* Interactive profit calculator */
.pks-calc { background: #f1f6f7; border: 1px solid #cfe0e2; border-radius: 10px; padding: 9px 10px; margin-bottom: 9px; box-shadow: inset 0 0 0 1px rgba(7,156,156,.04); }
.pks-calc-inputs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-bottom: 8px; }
.pks-calc-inputs.three { grid-template-columns: 1fr 0.9fr 0.8fr; gap: 5px; }
.pks-calc-price { margin-bottom: 0; min-width: 0; }
.pks-calc-price > label { display: flex; justify-content: flex-start; align-items: center; gap: 3px; font-size: 8.5px; color: #8a97a5; text-transform: uppercase; letter-spacing: .2px; margin-bottom: 3px; white-space: nowrap; }
/* Obvious "editable" cue: teal pill badge */
.pks-edit-hint { display: inline-flex; align-items: center; justify-content: center; background: #079C9C; color: #fff; font-size: 8px; font-weight: 700; padding: 1px 4px; border-radius: 4px; text-transform: uppercase; letter-spacing: .2px; }
.pks-price-input { display: flex; align-items: center; box-sizing: border-box; height: 27px; background: #fff; border: 1.5px solid #079C9C; border-radius: 7px; padding: 0 6px; box-shadow: 0 0 0 3px rgba(7,156,156,.08); overflow: hidden; }
.pks-price-input span { font-size: 11px; font-weight: 700; line-height: 1; color: #0A2540; margin-right: 1px; }
.pks-price-input input { border: none; outline: none; font-size: 12px; line-height: 1; font-weight: 700; color: #0A2540; width: 100%; height: 100%; padding: 0; background: transparent; -moz-appearance: textfield; }
.pks-price-input input::-webkit-outer-spin-button, .pks-price-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pks-card-country { width: 100%; box-sizing: border-box; height: 27px; line-height: 1; border: 1.5px solid #dfe4e9; border-radius: 7px; padding: 0 4px; font-size: 12px; font-weight: 700; color: #0A2540; background: #fff; outline: none; cursor: pointer; }
.pks-card-country:focus { border-color: #079C9C; }

.pks-calc-out { display: flex; justify-content: space-between; text-align: center; gap: 2px; }
.pks-calc-out > div { flex: 1; min-width: 0; }
.pks-calc-out label { display: block; font-size: 8.5px; color: #a5b0bb; text-transform: uppercase; margin-bottom: 2px; letter-spacing: .2px; }
.pks-calc-out b { font-size: 12px; color: #37474f; font-weight: 700; }
.pks-calc-out.four b { font-size: 11px; }
.pks-calc-out.five b { font-size: 10px; }
.pks-calc-out.five label { font-size: 7.5px; letter-spacing: 0; }
.pks-calc-out .hl b { color: #FF6B35; }
.pks-calc-out .hl2 b { color: #079C9C; }

.pks-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: 11px; gap: 6px; }
.pks-eng { color: #e8590c; font-weight: 700; white-space: nowrap; }
.pks-eta { color: #079C9C; font-weight: 600; white-space: nowrap; }

/* Empty */
.pks-empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: #8a97a5; font-size: 16px; }

/* Responsive */
@media (max-width: 1024px) { .pks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .pks-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .pks-hub-head h1 { font-size: 30px; } .pks-flabel { width: 100%; margin-bottom: 4px; } }
@media (max-width: 480px)  { .pks-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pks-card-price { font-size: 20px; } }

/* ============================================================
 * MY PRODUCTS — favorites basket (FAB + drawer)
 * ============================================================ */
.pks-fav-btn.added { background: #0A2540 !important; color: #fff !important; }

/* Floating action button — pill with label */
.pks-fav-fab { position: fixed; right: 22px; bottom: 22px; z-index: 9998; height: 54px; padding: 0 20px 0 18px; border-radius: 27px; border: none; background: #FF6B35; color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(255,107,53,.4); display: flex; align-items: center; gap: 9px; transition: transform .15s, box-shadow .15s; }
.pks-fav-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,53,.5); }
.pks-fav-fab-label { font-size: 15px; font-weight: 700; letter-spacing: .2px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pks-fav-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #0A2540; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Overlay + drawer */
.pks-fav-overlay { position: fixed; inset: 0; background: rgba(10,37,64,.45); z-index: 9998; }
.pks-fav-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 360px; max-width: 90vw; background: #fff; z-index: 9999; box-shadow: -8px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.pks-fav-drawer.open { transform: translateX(0); }
.pks-fav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eef1f4; }
.pks-fav-head h3 { margin: 0; font-size: 18px; color: #0A2540; font-weight: 700; }
.pks-fav-head #pks-fav-headcount { color: #FF6B35; }
.pks-fav-close { border: none; background: transparent; font-size: 28px; line-height: 1; color: #8a97a5; cursor: pointer; padding: 0 4px; }
.pks-fav-close:hover { color: #0A2540; }

.pks-fav-list { flex: 1; overflow-y: auto; padding: 12px 16px; }
.pks-fav-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2f4f6; }
.pks-fav-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid #eef1f4; }
.pks-fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pks-fav-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pks-fav-t { font-size: 13px; font-weight: 600; color: #0A2540; text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pks-fav-t:hover { color: #079C9C; }
.pks-fav-price { font-size: 14px; font-weight: 700; color: #FF6B35; }
.pks-fav-remove { flex: 0 0 auto; border: none; background: #f4f6f8; color: #8a97a5; width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.pks-fav-remove:hover { background: #fde8e0; color: #e8590c; }

.pks-fav-empty { display: none; padding: 60px 24px; text-align: center; color: #8a97a5; }
.pks-fav-empty p { font-size: 15px; font-weight: 600; color: #37474f; margin: 0 0 6px; }
.pks-fav-empty span { font-size: 13px; }

.pks-fav-foot { padding: 16px 20px; border-top: 1px solid #eef1f4; }
.pks-fav-checkout { display: block; text-align: center; background: #FF6B35; color: #fff; font-weight: 700; font-size: 15px; padding: 13px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.pks-fav-checkout:hover { background: #E85420; }
.pks-fav-clear { display: block; width: 100%; margin-top: 10px; background: transparent; border: none; color: #8a97a5; font-size: 13px; cursor: pointer; text-decoration: underline; }
.pks-fav-clear:hover { color: #0A2540; }

@media (max-width: 480px) { .pks-fav-fab { right: 14px; bottom: 14px; height: 48px; padding: 0 16px 0 14px; } .pks-fav-fab-label { font-size: 14px; } }
