/* ==========================================
   1. OSNOVNA TIPOGRAFIJA I KONTROLE
   ========================================== */
body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f8fafc;
    color: #334155;
}

/* Osnovni dugmići */
.btn {
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary, .btn-success {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

.btn-primary:hover, .btn-success:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

/* Navigacija (Header) */
.navbar, .navbar-inverse {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.navbar-inverse .navbar-nav > li > a {
    color: #475569 !important;
    font-weight: 600;
}

.navbar-inverse .navbar-nav > li > a:hover {
    color: #2563eb !important;
}

.navbar-brand img {
    max-height: 40px;
}

/* Standardne kartice i paneli */
.panel {
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    background: #fff;
    overflow: hidden;
}

.panel-heading {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form inputi */
.form-control, input[type="text"], input[type="email"], input[type="password"], select {
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    height: auto !important;
    transition: all 0.2s ease-in-out;
    color: #1e293b !important;
}

.form-control:focus, input:focus, select:focus {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Info boxevi */
.well, .alert-info, .bg-info {
    background-color: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    border-radius: 8px !important;
    color: #1e40af !important;
}

.alert {
    border-radius: 8px !important;
    border: none !important;
    padding: 14px 18px !important;
    font-weight: 500;
}

.alert-danger {
    background-color: #ffeeec !important;
    color: #991b1b !important;
}

.alert-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

/* Dropdown meniji */
.dropdown-menu {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    padding: 8px !important;
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-weight: 500;
    color: #334155 !important;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: #2563eb !important;
}

/* Razmak od headera */
body > .container-md, 
body > .container {
    margin-top: 35px !important;
}

body > .container-md > .row,
body > .container > .row {
    padding-top: 10px !important;
}


/* ==========================================
   2. SPECIFIČNI DIZAJN ZA CHECKOUT I FORME
   ========================================== */

/* Glavna kartica samo za checkout */
.card-order {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    padding: 35px !important;
}

.card-order h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

.card-order label {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Stripe okvir */
#stripe-cc-form {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 15px !important;
}

.top-focus-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

/* Checkbox saglasnosti */
.card-order .checkbox label {
    font-weight: 500 !important;
    color: #475569 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.card-order input[type="checkbox"] {
    accent-color: #2563eb !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}


/* ==========================================
   3. POPRAVKA DUGMIĆA U KORPI (EDIT / REMOVE)
   ========================================== */

/* Mala crvena Remove dugmad u korpi (izolovano od globalnih submit dugmića) */
.cart-item button[type="submit"], 
form[action*="cart"] button[type="submit"],
.btn-group .btn-danger,
.btn-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    width: auto !important;
    display: inline-block !important;
    margin-top: 0 !important;
    border: none !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    transform: none !important;
}

/* Edit dugme u korpi */
.cart-item .btn-light, 
.btn-group .btn-light {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    width: auto !important;
    margin-top: 0 !important;
    box-shadow: none !important;
}

.btn-group {
    display: inline-flex !important;
    gap: 6px !important;
    align-items: center !important;
}


/* ==========================================
   4. SHOPIFY-STYLE CHECKOUT SPLIT LAYOUT
   ========================================== */

body.plugin-orderclient-checkout-index .container-md > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

body.plugin-orderclient-checkout-index .container-md > .row > .col-md-12 {
    flex: 2 !important;
    min-width: 320px !important;
    width: auto !important;
}

body.plugin-orderclient-checkout-index .card-order {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    padding: 30px !important;
}

body.plugin-orderclient-checkout-index .card-order .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

body.plugin-orderclient-checkout-index .card-order .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 10px !important;
}

body.plugin-orderclient-checkout-index .card-order label {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}

body.plugin-orderclient-checkout-index .card-order .form-control, 
body.plugin-orderclient-checkout-index .card-order select {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    height: auto !important;
}

body.plugin-orderclient-checkout-index .card-order .form-control:focus {
    background-color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

body.plugin-orderclient-checkout-index #stripe-cc-form {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 15px !important;
}

body.plugin-orderclient-checkout-index .top-focus-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

/* Glavno dugme za završetak plaćanja samo na checkout stranici */
body.plugin-orderclient-checkout-index button[type="submit"].btn-success {
    background: #2563eb !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    width: 100% !important;
    margin-top: 20px !important;
    float: none !important;
}

body.plugin-orderclient-checkout-index button[type="submit"].btn-success:hover {
    background: #1d4ed8 !important;
}

/* GUARDIALHOST PRICING SECTION */
.gh-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; padding: 20px; }
.gh-card { background: #ffffff; border: 1px solid #f1f5f9; border-radius: 16px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gh-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.gh-badge { display: inline-block; background: #eff6ff; color: #3b82f6; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 12px; border-radius: 50px; margin-bottom: 20px; }
.gh-card.popular { border: 2px solid #3b82f6; position: relative; }
.gh-card.popular .gh-badge { background: #3b82f6; color: #ffffff; }
.gh-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 15px; }
.gh-price { font-size: 3rem; font-weight: 800; color: #0f172a; margin-bottom: 30px; display: flex; justify-content: center; align-items: baseline; }
.gh-price span { font-size: 1rem; color: #64748b; font-weight: 500; margin-left: 5px; }
.gh-features { list-style: none; padding: 0; margin: 0 0 30px 0; }
.gh-features li { font-size: 0.95rem; color: #475569; padding: 15px 0; border-bottom: 1px solid #f1f5f9; }
.gh-features li:last-child { border-bottom: none; }
.gh-btn { display: block; width: 100%; background: #2563eb; color: #ffffff; font-weight: 600; font-size: 1rem; padding: 14px 0; border-radius: 8px; text-decoration: none; transition: background 0.2s; }
.gh-btn:hover { background: #1d4ed8; color: #ffffff; text-decoration: none; }
.gh-footer { font-size: 0.8rem; color: #94a3b8; margin-top: 15px; }