/* ====== CART.CSS (NOŽIARI STYLE) ====== */

/* ===== COLORS ===== */
:root{
    --blue-dark: #0a1f44;
    --blue-light: #1a3a7a;
    --gold: #ffb400;
    --gold-hover: #ffa000;

    --bg: #f8f9fa;
    --card-bg: #fff;
    --text: #111;
    --muted: #6c757d;
    --border: #ddd;
}

body{
    background: var(--bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    padding-top: 90px;
    color: var(--text);
}

/* ===== NAVBAR ===== */
.navbar{
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}

.navbar-brand{
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue-dark);
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.25);
}

.navbar-brand:hover{
    color: var(--blue-light);
}

/* ===== BUTTONS ===== */
.btn-custom{
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease;
}

.btn-custom:hover{
    transform: translateY(-1px);
}

.btn-primary{
    background: var(--gold);
    border: none;
    color: #fff;
}

.btn-primary:hover{
    background: var(--gold-hover);
}

/* small buttons in cart */
.btn-sm{
    border-radius: 12px;
    font-weight: 700;
}

/* ===== CARDS ===== */
.card{
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: all .3s ease;
    background: var(--card-bg);
}

.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.cart-card, .total-box, .empty-box{
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 20px;
}

/* ===== TABLE ===== */
.table td, .table th{
    vertical-align: middle;
    border-top: 1px solid #e0e0e0;
}

.table th{
    font-weight: 700;
    color: var(--blue-dark);
}

.table img{
    border-radius: 12px;
}

/* ===== TEXT ===== */
.small-muted{
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== EMPTY CART ===== */
.empty-box{
    text-align: center;
    padding: 60px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px){
    .table th:nth-child(2),
    .table td:nth-child(2){
        display: none; /* skryť obrázok na tabletoch */
    }
}

@media (max-width: 576px){
    body{
        font-size: 15px;
        padding-top: 90px;
    }

    /* navbar */
    .navbar-brand{
        font-size: 2rem;
    }

    /* table becomes stacked cards */
    .cart-card table,
    .cart-card thead,
    .cart-card tbody,
    .cart-card th,
    .cart-card td,
    .cart-card tr{
        display: block;
        width: 100%;
    }

    .cart-card thead{
        display: none;
    }

    .cart-card tr{
        margin-bottom: 15px;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 12px;
        background: var(--card-bg);
    }

    .cart-card td{
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-top: none;
        border-bottom: 1px solid #eee;
    }

    .cart-card td:last-child{
        border-bottom: none;
    }

    .cart-card td::before{
        content: attr(data-label);
        font-weight: 700;
        color: var(--blue-dark);
    }

    .cart-card img{
        max-width: 120px;
    }

    /* hide cart icon */
    .btn-custom .bi{
        display: none;
    }

    .cart-card,
    .total-box{
        padding: 15px;
    }
}
