﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- PREMIUM QUANTITY SELECTOR --- */
.qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #1a1a1a; /* Crni okvir */
    width: fit-content;
    height: 50px; /* Visina da se slaže sa dugmetom */
    background: #fff;
}

.qty-btn {
    width: 45px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qty-btn:hover {
        background-color: #f5f5f5;
        color: var(--brand-gold);
    }

.qty-input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: #1a1a1a;
    background: transparent;
}

    /* Uklanjamo one ružne strelice koje browser sam dodaje */
    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.qty-input {
    -moz-appearance: textfield; /* Firefox */
}

/* --- POPRAVLJENI STILOVI ZA PAKETE --- */

.package-card {
    background: #fff;
    height: 100%;
    position: relative;
    /* BITNO: Ovo mora biti visible da se značka ne bi odsekla */
    overflow: visible !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Obična kartica hover */
    .package-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        z-index: 10; /* Da iskoči ispred drugih kad se pređe mišem */
    }

/* Kartica koja je Best Seller (Najprodavanije) */
/* Ovu klasu dodaje _PackageCard.cshtml logika */
.package-highlight {
    background-color: #fff;
    /* Onaj fini zlatni okvir */
    border: 1px solid rgba(180, 142, 112, 0.3) !important;
    z-index: 5; /* Uvek je malo ispred običnih */
}

/* Na većim ekranima je trajno uvećana */
@media (min-width: 992px) {
    .package-highlight {
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }

        .package-highlight:hover {
            transform: scale(1.08);
            box-shadow: 0 15px 50px rgba(180, 142, 112, 0.25);
        }
}

/* Značka "Najprodavanije" - STILIZACIJA */
/* Ovo gađa onaj badge div u HTML-u */
.package-highlight .badge {
    position: absolute;
    top: 0;
    left: 50%;
    /* Ovo ga centrira i podiže tačno na liniju okvira */
    transform: translate(-50%, -50%);
    background-color: var(--brand-black) !important;
    color: #fff;
    padding: 8px 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 0; /* Oštre ivice za premium izgled */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Mala senka da se odvoji */
    white-space: nowrap;
    z-index: 20;
}

/* --- OSTALO (Veličine, Cena) --- */
.size-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.size-option {
    display: none;
}

.size-label {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    background: #fff;
    font-family: 'Lato', sans-serif;
}

.size-option:checked + .size-label {
    border-color: var(--brand-black);
    background-color: var(--brand-black);
    color: #fff;
}

.size-label:hover {
    border-color: var(--brand-gold);
}

/* Animacija cene */
.price-fade {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

/* Značka "Najprodavanije" */
.badge-bestseller {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-black);
    color: #fff;
    padding: 5px 15px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-family: 'Lato', sans-serif;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Lista sadržaja u paketu */
.package-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

/* --- IZBOR VELIČINE (Kopirano da bude isto kao na Shop-u) --- */
.size-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.size-option {
    display: none;
}

.size-label {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    background: #fff;
    font-family: 'Lato', sans-serif;
}

.size-option:checked + .size-label {
    border-color: var(--brand-black);
    background-color: var(--brand-black);
    color: #fff;
}

.size-label:hover {
    border-color: var(--brand-gold);
}

/* Animacija cene kad se promeni */
.price-fade {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}