.ct-page { background:#faf9f7; padding:0 0 60px; min-height:70vh; }
.ct-container { max-width:1140px; margin:0 auto; padding:0 16px; }
.ct-header { padding:28px 0 24px; }
.ct-title { font-size:28px; font-weight:700; color:#222; margin:0; }

.ct-layout { display:grid; grid-template-columns:1fr 340px; gap:28px; align-items:start; }

.ct-items { background:#fff; border-radius:14px; box-shadow:0 2px 16px rgba(0,0,0,.05); overflow:hidden; }
.ct-item { display:grid; grid-template-columns:80px 1fr auto; gap:16px; padding:20px; border-bottom:1px solid #f0f0f0; align-items:center; }
.ct-item:last-child { border-bottom:none; }
.ct-item-img { width:80px; height:80px; border-radius:10px; overflow:hidden; background:#f5f5f5; flex-shrink:0; }
.ct-item-img img { width:100%; height:100%; object-fit:cover; }
.ct-item-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:#f0f0f0; }
.ct-item-img-placeholder svg { opacity:.3; }
.ct-item-info { min-width:0; }
.ct-item-mob-img { display:none; }
.ct-item-name { font-size:15px; font-weight:600; color:#222; margin:0 0 4px; line-height:1.3; }
.ct-item-name a { color:#222; text-decoration:none; }
.ct-item-name a:hover { color:#eea287; }
.ct-item-size { font-size:12px; color:#999; margin:0 0 8px; }
.ct-item-price { font-size:14px; font-weight:600; color:#eea287; }

.ct-item-actions { display:flex; align-items:center; gap:16px; }
.ct-qty-wrap { display:flex; align-items:center; border:1.5px solid #e8e8e8; border-radius:8px; overflow:hidden; background:#fafafa; }
.ct-qty-btn { width:32px; height:34px; border:none; background:transparent; font-size:16px; color:#555; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; padding:0; line-height:1; }
.ct-qty-btn:hover { background:#f0f0f0; color:#eea287; }
.ct-qty-btn svg { display:block; flex-shrink:0; }
.ct-qty-input { width:40px; height:34px; border:none; border-left:1px solid #e8e8e8; border-right:1px solid #e8e8e8; text-align:center; font-size:14px; font-weight:600; color:#333; background:transparent; outline:none; -moz-appearance:textfield; }
.ct-qty-input::-webkit-outer-spin-button, .ct-qty-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.ct-item-subtotal { font-size:16px; font-weight:700; color:#222; white-space:nowrap; min-width:80px; text-align:right; }
.ct-item-remove { width:32px; height:32px; border-radius:8px; border:1.5px solid #f0d0d0; background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s; flex-shrink:0; padding:0; }
.ct-item-remove:hover { background:#fef0ef; border-color:#e74c3c; }
.ct-item-remove svg { stroke:#e74c3c; display:block; }

.ct-bottom { display:flex; justify-content:flex-end; padding:16px 20px; border-top:1px solid #f0f0f0; }
.ct-btn-clear { display:inline-flex; align-items:center; gap:8px; padding:10px 22px; border:1.5px solid #f0d0d0; border-radius:10px; background:#fff; color:#e74c3c; font-size:13px; font-weight:500; cursor:pointer; transition:all .2s; }
.ct-btn-clear:hover { background:#fef0ef; border-color:#e74c3c; }

.ct-sidebar { position:sticky; top:80px; }
.ct-summary { background:#fff; border-radius:14px; box-shadow:0 2px 16px rgba(0,0,0,.05); padding:24px; margin-bottom:14px; }
.ct-summary-title { font-size:18px; font-weight:700; color:#222; margin:0 0 20px; padding-bottom:14px; border-bottom:1px solid #f0f0f0; }
.ct-summary-row { display:flex; justify-content:space-between; padding:8px 0; font-size:14px; color:#444; }
.ct-summary-total { display:flex; justify-content:space-between; padding:14px 0 0; margin-top:10px; border-top:2px solid #f0f0f0; font-size:18px; font-weight:700; color:#222; }
.ct-btn-checkout { display:block; width:100%; padding:14px; border:none; border-radius:12px; background:#eea287; color:#fff; font-size:15px; font-weight:600; text-align:center; cursor:pointer; transition:all .25s; text-decoration:none; margin-top:16px; }
.ct-btn-checkout:hover { background:#e8926f; transform:translateY(-1px); box-shadow:0 6px 20px rgba(238,162,135,.35); color:#fff; text-decoration:none; }
.ct-btn-shop { display:block; width:100%; padding:12px; border:1.5px solid #e8e8e8; border-radius:12px; background:#fff; color:#555; font-size:14px; font-weight:500; text-align:center; cursor:pointer; transition:all .2s; text-decoration:none; }
.ct-btn-shop:hover { border-color:#eea287; color:#eea287; text-decoration:none; }
.ct-auth-msg { background:#fef6f2; border-radius:10px; padding:14px; margin-top:16px; font-size:13px; color:#666; line-height:1.5; text-align:center; }
.ct-auth-btns { display:flex; gap:10px; margin-top:12px; }
.ct-auth-btns a { flex:1; text-align:center; padding:11px; border-radius:10px; font-size:13px; font-weight:600; text-decoration:none; transition:all .2s; }
.ct-auth-btns a:first-child { background:#eea287; color:#fff; }
.ct-auth-btns a:first-child:hover { background:#e8926f; color:#fff; }
.ct-auth-btns a:last-child { border:1.5px solid #e8e8e8; color:#555; background:#fff; }
.ct-auth-btns a:last-child:hover { border-color:#eea287; color:#eea287; }

.ct-empty { display:none; text-align:center; padding:60px 20px; }
.ct-empty svg { margin-bottom:16px; }
.ct-empty-title { font-size:20px; font-weight:600; color:#333; margin:0 0 8px; }
.ct-empty-text { font-size:14px; color:#999; margin:0 0 24px; }
.ct-btn-start { display:inline-flex; align-items:center; gap:10px; padding:13px 32px; border:none; border-radius:12px; background:#eea287; color:#fff; font-size:15px; font-weight:600; text-decoration:none; transition:all .25s; }
.ct-btn-start:hover { background:#e8926f; transform:translateY(-1px); box-shadow:0 6px 20px rgba(238,162,135,.35); color:#fff; text-decoration:none; }

@media(max-width:1024px){
    .ct-layout { grid-template-columns:1fr 280px; gap:20px; }
}

@media(max-width:768px){
    .ct-layout { grid-template-columns:1fr; gap:14px; }
    .ct-sidebar { position:static; }
    .ct-header { padding:20px 0 16px; }
    .ct-title { font-size:22px; }

    .ct-item { grid-template-columns:1fr; gap:0; padding:16px; }
    .ct-item-img { display:none; }
    .ct-item-mob-img { display:block; }
    .ct-item-info { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
    .ct-item-mob-img { width:56px; height:56px; border-radius:8px; overflow:hidden; background:#f5f5f5; flex-shrink:0; }
    .ct-item-mob-img img { width:100%; height:100%; object-fit:cover; }
    .ct-item-mob-details { flex:1; min-width:0; }
    .ct-item-actions { justify-content:space-between; gap:10px; }
    .ct-item-subtotal { min-width:unset; text-align:right; flex:1; }
}

@media(max-width:480px){
    .ct-page { padding:0 0 40px; }
    .ct-container { padding:0 10px; }
    .ct-header { padding:16px 0 12px; }
    .ct-title { font-size:20px; }
    .ct-item { padding:14px 12px; }
    .ct-summary { padding:18px; }
    .ct-summary-title { font-size:16px; margin-bottom:14px; padding-bottom:10px; }
    .ct-item-name { font-size:13px; }
    .ct-item-price { font-size:13px; }
    .ct-qty-btn { width:30px; height:30px; }
    .ct-qty-input { width:34px; height:30px; font-size:13px; }
    .ct-item-subtotal { font-size:14px; }
    .ct-btn-checkout { padding:12px; font-size:14px; }
    .ct-btn-clear { padding:8px 16px; font-size:12px; }
}
