/* ====================
   StyleHub - Cart CSS
   ==================== */
 
* { margin: 0; padding: 0; box-sizing: border-box; }
 
body {
    font-family: Arial, sans-serif;
    color: #111;
    background-color: #f8f8f8;
}
 
/* TOP BAR */
.topbar { background-color: #111111; height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.topbar-left a { color: #aaaaaa; text-decoration: none; font-size: 12px; margin-right: 10px; }
.topbar-left a:hover { color: white; }
.topbar-center { color: #dddddd; font-size: 12px; letter-spacing: 1px; }
.topbar-right span { color: #aaaaaa; font-size: 12px; margin-left: 15px; }
 
/* NAVBAR */
.navbar { height: 65px; background-color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 35px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #eeeeee; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
.nav-left { display: flex; gap: 5px; }
.nav-left a { text-decoration: none; color: #333333; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.nav-left a:hover { color: #C8536E; }
.nav-logo { font-family: Georgia, serif; font-size: 26px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: #111111; cursor: pointer; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-icon { text-decoration: none; color: #333333; font-size: 13px; font-weight: 600; }
.nav-icon:hover { color: #C8536E; }
.nav-icon.active { color: #C8536E; }
.cart-count { background-color: #C8536E; color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; margin-left: 3px; }
 
/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, #F0AABF, #F5BCC8); padding: 40px 50px; }
.page-header h1 { font-family: Georgia, serif; font-size: 38px; font-weight: 700; color: #111111; margin-bottom: 8px; }
.page-header p { font-size: 14px; color: rgba(0,0,0,0.55); }
 
/* CART SECTION */
.cart-section { display: flex; gap: 25px; padding: 30px 50px; align-items: flex-start; }
 
/* CART ITEMS */
.cart-items { flex: 1; }
 
.cart-header { margin-bottom: 16px; }
.cart-header h2 { font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: #111111; }
.cart-header h2 span { font-size: 16px; color: #888888; font-family: Arial, sans-serif; }
 
/* CART ITEM */
.cart-item { background-color: white; border-radius: 8px; border: 1px solid #eeeeee; padding: 16px; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); transition: box-shadow 0.2s; }
.cart-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
 
/* ITEM IMAGE */
.item-img { width: 70px; height: 70px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.pink-bg   { background: linear-gradient(135deg, #FAD4DE, #F2AABF); }
.purple-bg { background: linear-gradient(135deg, #e8d5f5, #c8a8e0); }
.dark-bg   { background: linear-gradient(135deg, #d5d5e8, #a8a8d0); }
 
/* ITEM INFO */
.item-info { flex: 1; }
.item-boutique { font-size: 10px; color: #C8536E; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.item-name { font-size: 15px; font-weight: 700; color: #111111; margin-bottom: 4px; }
.item-cat { font-size: 12px; color: #888888; }
 
/* ITEM PRICE */
.item-price { font-family: Georgia, serif; font-size: 17px; font-weight: 700; color: #111111; white-space: nowrap; }
 
/* REMOVE BUTTON */
.remove-btn { background: none; border: none; font-size: 18px; color: #cccccc; cursor: pointer; padding: 5px; transition: color 0.2s; }
.remove-btn:hover { color: #C8536E; }
 
/* CONTINUE SHOPPING */
.continue-shopping { margin-top: 10px; }
.continue-shopping a { font-size: 13px; color: #C8536E; font-weight: 700; text-decoration: none; }
.continue-shopping a:hover { text-decoration: underline; }
 
/* CART SUMMARY */
.cart-summary { width: 320px; flex-shrink: 0; background-color: white; border-radius: 8px; border: 1px solid #eeeeee; padding: 22px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: sticky; top: 85px; }
 
.cart-summary h2 { font-family: Georgia, serif; font-size: 20px; font-weight: 700; color: #111111; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #eeeeee; }
 
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; color: #333333; border-bottom: 1px solid #f5f5f5; }
.summary-row:last-of-type { border-bottom: none; }
 
.free-delivery { color: #27ae60; font-weight: 700; }
 
.total-row { font-weight: 700; font-size: 16px; color: #111111; border-top: 2px solid #eeeeee !important; border-bottom: none !important; margin-top: 5px; padding-top: 14px !important; }
 
/* ADVANCE BOX */
.advance-box { background-color: #FFF0F3; border: 1px solid #FAD4DE; border-radius: 6px; padding: 14px; margin: 18px 0; }
.advance-box p:first-child { font-size: 12px; color: #888888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.advance-amount { font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: #C8536E; margin-bottom: 6px; }
.advance-note { font-size: 11px; color: #888888; line-height: 1.5; }
 
/* CHECKOUT BUTTON */
.btn-checkout { width: 100%; padding: 14px; background-color: #111111; color: white; border: none; border-radius: 4px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; transition: background-color 0.3s; margin-bottom: 10px; }
.btn-checkout:hover { background-color: #C8536E; }
 
.btn-continue { display: block; text-align: center; font-size: 13px; color: #888888; text-decoration: none; font-weight: 600; }
.btn-continue:hover { color: #111111; }
 
/* FOOTER */
.footer { background-color: #111111; padding: 45px 50px; display: flex; gap: 30px; color: rgba(255,255,255,0.5); margin-top: 20px; }
.footer-col { flex: 1; }
.footer-logo { font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: white; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.footer-logo span { color: #FAD4DE; }
.footer-col p { font-size: 12px; line-height: 1.8; }
.footer-col h4 { color: white; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: white; }
.footer-bottom { background-color: rgba(0,0,0,0.4); padding: 12px 50px; display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.3); }
/* Per-item Place Order button */
.btn-order-item {
    background-color: #C8536E;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s ease;
}
 
.btn-order-item:hover {
    background-color: #A8425A;
}
/* Profile avatar in navbar */
.nav-icon.logged-in {
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #C8536E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}
/* ========================
   RESPONSIVE - Tablet & Mobile
   ======================== */
@media (max-width: 768px) {
    .topbar { flex-direction: column; height: auto; padding: 8px 15px; gap: 4px; }
    .topbar-center { order: -1; }
 
    .navbar { flex-wrap: wrap; height: auto; padding: 10px 15px; row-gap: 8px; }
    .nav-left { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 0; }
    .nav-logo { position: static; transform: none; font-size: 20px; letter-spacing: 2px; order: 1; }
    .nav-right { order: 2; width: 100%; justify-content: space-between; gap: 0; margin-left: 0; }
    .nav-icon span { font-size: 10px; }
 
    .page-header { padding: 25px 20px; }
    .page-header h1 { font-size: 26px; }
 
    .cart-section { flex-direction: column; padding: 20px; gap: 18px; }
    .cart-summary { width: 100%; position: static; }
 
    .cart-item { flex-wrap: wrap; padding: 12px; gap: 10px; }
    .item-info { min-width: 60%; }
    .item-price { margin-left: auto; }
 
    .footer { flex-direction: column; padding: 30px 20px; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 5px; padding: 12px 20px; text-align: center; }
}
 