/* ==========================================================================
   iLearn - Stranica artikla / knjige
   assets/css/book-page.css (Stabilan layout bez razvlačenja)
   ========================================================================== */

:root {
    --il-red: #FE4C50;
    --il-red-hover: #e03b3f;
    --il-navy: #1E1E27;
    --il-text: #2c2c36;
    --il-muted: #8C90A4;
    --il-border: #EDEDF2;
    --il-bg-light: #F8F9FA;
    --il-green: #10B981;
}

body {
    overflow-x: hidden;
}

/* GLAVNI WRAPPER - Tačno usklađen sa širinom i ivicama kataloga (1220px) */
.il-product-wrapper { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 15px; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    color: var(--il-text); 
}
.il-product-wrapper * { box-sizing: border-box; }

/* HERO GRID - Stabilne kolone (420px levo, preostali prostor desno) */
.il-hero-grid { 
    display: grid; 
    grid-template-columns: 420px 1fr; 
    gap: 40px; 
    align-items: start; 
    margin-bottom: 35px; 
    width: 100%;
}

/* GALERIJA I BINA */
.il-gallery-wrap { 
    width: 100%; 
    min-width: 0; /* Sprečava grid element da probije širinu */
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}
.il-stage-card { 
    width: 100%; 
    max-width: 100%;
    background: #ffffff; 
    border: 1px solid var(--il-border); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04); 
}
.il-stage-inner { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fbfbfd; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.il-stage-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.il-cover-tag { position: absolute; top: 14px; left: 14px; background: var(--il-red); color: #ffffff; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; z-index: 2; }
.il-tag-novo { background: var(--il-green); }
.il-video-play-overlay { position: absolute; inset: 0; background: rgba(15, 15, 25, 0.28); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; transition: background 0.2s ease; }
.il-video-play-overlay:hover { background: rgba(15, 15, 25, 0.42); }
.il-play-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--il-red); color: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(254, 76, 80, 0.45); transition: transform 0.2s ease; }
.il-video-play-overlay:hover .il-play-circle { transform: scale(1.08); }
.il-thumbs-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 100%; overflow: hidden; }
.il-thumb-btn { position: relative; width: 68px; height: 68px; min-width: 68px; min-height: 68px; aspect-ratio: 1 / 1; border-radius: 8px; border: 2px solid var(--il-border); padding: 0; background: #ffffff; overflow: hidden; cursor: pointer; transition: all 0.15s ease; display: flex; align-items: center; justify-content: center; }
.il-thumb-btn img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.il-thumb-btn:hover { border-color: #cbd5e1; }
.il-thumb-btn.is-active { border-color: var(--il-red); box-shadow: 0 0 0 1px var(--il-red); }
.il-thumb-mini-play { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); color: #ffffff; display: flex; align-items: center; justify-content: center; }

/* DETALJI O PROIZVODU */
.il-product-details { display: flex; flex-direction: column; min-width: 0; }
.il-formats-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.il-format-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--il-border); color: var(--il-navy); background: #ffffff; transition: all 0.15s ease; }
.il-pill-active { border-color: #fca5a5; background: #fef2f2; color: var(--il-navy); }
.il-pill-outline:hover { border-color: var(--il-red); color: var(--il-red); }
.il-product-heading { font-size: 25px; font-weight: 800; line-height: 1.3; color: var(--il-navy); margin: 0 0 8px 0; }
.il-author-sub { font-size: 14.5px; color: #555566; margin-bottom: 12px; }
.il-author-sub strong { color: var(--il-navy); }
.il-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.il-rating-stars-clean { display: flex; align-items: center; gap: 4px; font-size: 15px; line-height: 1; }
.il-star-filled { color: #FE4C50; }
.il-star-empty { color: #FE4C50; opacity: 0.85; }
.il-rating-count-text { font-size: 12.5px; color: #64748B; margin-left: 6px; font-weight: 500; }
.il-badge-delivery-right { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--il-green); background: #ecfdf5; border: 1px solid #a7f3d0; padding: 3px 8px; border-radius: 4px; }

/* KARTICA CENE I KUPOVINE */
.il-modern-price-card { background: #FAFAFC; border: 1px solid var(--il-border); border-radius: 10px; padding: 18px 22px; margin-bottom: 22px; }
.il-price-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.il-price-meta-label { font-size: 11px; font-weight: 700; color: var(--il-muted); letter-spacing: 0.5px; }
.il-stock-badge { font-size: 12.5px; font-weight: 700; color: var(--il-green); }
.il-out-of-stock { color: #EF4444 !important; }
.il-numeric-price { font-size: 32px; font-weight: 900; color: var(--il-red); line-height: 1.1; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.il-numeric-price small { font-size: 17px; font-weight: 800; color: var(--il-navy); }
.il-numeric-price .old-price { font-size: 16px; font-weight: 600; color: var(--il-muted); text-decoration: line-through; }
.il-action-row { display: flex; align-items: center; gap: 12px; }
.il-counter-box { display: flex; align-items: center; background: #ffffff; border: 1px solid #D1D5DB; border-radius: 6px; overflow: hidden; height: 44px; }
.il-counter-btn { width: 38px; height: 100%; background: none; border: none; font-size: 16px; font-weight: 700; color: var(--il-navy); cursor: pointer; transition: background 0.15s ease; }
.il-counter-btn:hover { background: #F3F4F6; }
.il-counter-input { width: 44px; height: 100%; border: none; text-align: center; font-size: 15px; font-weight: 700; color: var(--il-navy); outline: none; }
.il-btn-add-primary { flex: 1; height: 44px; background: var(--il-red); color: #ffffff; border: none; border-radius: 6px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background 0.15s ease; }
.il-btn-add-primary:hover { background: var(--il-red-hover); }
.il-btn-disabled { background: #CBD5E1 !important; color: #64748B !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; }
.il-btn-wishlist { width: 44px; height: 44px; background: #ffffff; border: 1px solid #D1D5DB; border-radius: 6px; color: #64748B; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.il-btn-wishlist:hover { border-color: var(--il-red); color: var(--il-red); }
.il-btn-wishlist.active { border-color: var(--il-red); color: var(--il-red); background: #FEF2F2; }

/* SPECIFIKACIJE */
.il-specs-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 18px; border: 1px solid var(--il-border); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; background: #ffffff; }
.il-spec-col { display: flex; align-items: baseline; font-size: 13.5px; line-height: 1.4; white-space: nowrap; }
.il-spec-col-right { justify-content: flex-start; }
.il-spec-lbl { width: 62px; color: #64748B; font-size: 13px; flex-shrink: 0; }
.il-spec-col strong { color: var(--il-navy); font-weight: 700; }
.il-publisher-link { color: var(--il-navy); text-decoration: none; transition: color 0.15s ease; }
.il-publisher-link:hover { color: var(--il-red) !important; text-decoration: underline; }

/* AI ASISTENT */
.ai-book-qa-container { background: #ffffff; border: 1px solid #e2e8f0; border-left: 4px solid var(--il-red); border-radius: 8px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; }
.ai-qa-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ai-qa-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.ai-qa-title { display: block; font-size: 14.5px; font-weight: 700; color: var(--il-navy); line-height: 1.25; font-family: inherit !important; }
.ai-qa-subtitle { display: block; font-size: 12.5px; font-weight: 500; color: #64748B; margin-top: 2px; font-family: inherit !important; }
.ai-qa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ai-qa-chip { background: #F8FAFC; border: 1px solid #CBD5E1; color: #334155; padding: 5px 11px; border-radius: 14px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; font-family: inherit !important; }
.ai-qa-chip:hover { background: var(--il-red); color: #ffffff; border-color: var(--il-red); }
.ai-qa-input-box { display: flex; gap: 8px; }
.ai-qa-input-box input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 13px; color: var(--il-navy); outline: none; transition: border-color 0.15s ease; font-family: inherit !important; }
.ai-qa-input-box input:focus { border-color: var(--il-red); }
.ai-qa-input-box button { height: 38px; padding: 0 18px; background: var(--il-red); color: #ffffff; border: none; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.15s ease; font-family: inherit !important; }
.ai-qa-input-box button:hover { background: var(--il-red-hover); }
#ai-book-answer-box { margin-top: 12px; padding: 14px 16px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 6px; font-size: 13.5px; line-height: 1.6; color: var(--il-text); max-height: 240px; overflow-y: auto; font-family: inherit !important; }

/* DONJE KARTICE */
.il-section-card { background: #ffffff; border: 1px solid var(--il-border); border-radius: 12px; padding: 26px 30px; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03); }
.il-sec-title { font-size: 19px; font-weight: 800; color: var(--il-navy); margin: 0 0 18px 0; letter-spacing: -0.2px; }
.il-prose-block { font-size: 15px; line-height: 1.7; color: #3F3F46; }
.il-prose-block p { margin-bottom: 14px; }
.il-prose-block a { color: var(--il-navy); text-decoration: none; border-bottom: 1px solid var(--il-red); padding: 2px 4px; margin: 0 -2px; transition: all 0.2s ease; }
.il-prose-block a:hover { color: var(--il-red); background-color: #FEF2F2; border-bottom-color: transparent; border-radius: 4px; }

/* DODATNI MATERIJALI */
.il-pdf-two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.il-pdf-item { display: flex; align-items: center; justify-content: space-between; background: #ffffff; border: 1px solid #E2E8F0; border-radius: 8px; padding: 12px 16px; gap: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.il-pdf-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); border-color: #CBD5E1; }
.il-pdf-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.il-pdf-file-icon { width: 22px; height: 26px; object-fit: contain; flex-shrink: 0; background: transparent !important; }
.il-file-icon-badge { width: 34px; height: 34px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.il-file-type-pdf { color: #E11D48; background: #FFF1F2; border: 1px solid #FECDD3; }
.il-file-type-word { color: #2563EB; background: #EFF6FF; border: 1px solid #BFDBFE; }
.il-file-type-excel { color: #16A34A; background: #F0FDF4; border: 1px solid #BBF7D0; }
.il-file-type-archive { color: #D97706; background: #FFFBEB; border: 1px solid #FDE68A; }
.il-file-type-other { color: #475569; background: #F1F5F9; border: 1px solid #CBD5E1; }
.il-pdf-name { font-size: 13.5px; font-weight: 600; color: #1E1E27; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-pdf-view-btn { background: #FE4C50 !important; color: #ffffff !important; border: none; border-radius: 5px; padding: 6px 16px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s ease, transform 0.15s ease; }
.il-pdf-view-btn:hover { background: #e03b3f !important; }

/* VIDEO PRIKAZI */
.il-video-two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.il-video-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.il-video-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.il-video-thumb-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.il-video-thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.il-video-card-title { font-size: 13.5px; font-weight: 700; color: var(--il-navy); padding: 10px 14px; margin: 0; }

/* OCENE I KOMENTARI */
.il-reviews-card { background: #ffffff; border: 1px solid var(--il-border); border-radius: 12px; padding: 28px 32px; }
.il-reviews-header { display: flex; align-items: center; justify-content: space-between; }
.il-reviews-sub { font-size: 13.5px; color: #64748B; }
.il-reviews-summary-badge { display: flex; align-items: center; gap: 12px; background: #F8FAFC; border: 1px solid #E2E8F0; padding: 10px 18px; border-radius: 8px; }
.il-summary-num { font-size: 26px; font-weight: 900; color: var(--il-navy); line-height: 1; }
.il-summary-stars { display: flex; gap: 3px; font-size: 14px; }
.il-summary-total { font-size: 12.5px; color: #64748B; font-weight: 600; }

.il-btn-toggle-reviews { background: transparent; border: 1px solid var(--il-border); color: var(--il-navy); padding: 12px 20px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; width: 100%; justify-content: center; margin-top: 20px; }
.il-btn-toggle-reviews:hover { border-color: var(--il-red); color: var(--il-red); background: #FEF2F2; }

.il-comment-notice { background: #ECFDF5; border: 1px solid #A7F3D0; border-left: 4px solid var(--il-green); color: #065F46; padding: 13px 18px; border-radius: 6px; font-size: 13.5px; font-weight: 500; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.il-comment-notice i { color: var(--il-green); font-size: 16px; }
.il-comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.il-comment-item { background: #F8FAFC; border: 1px solid #EDEDF2; border-radius: 8px; padding: 16px 20px; }
.il-comment-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.il-comment-user { font-size: 14.5px; color: var(--il-navy); }
.il-comment-meta { display: flex; align-items: center; gap: 12px; }
.il-comment-stars { color: var(--il-red); font-size: 13px; }
.il-comment-date { font-size: 12px; color: #94A3B8; }
.il-comment-body { font-size: 14px; line-height: 1.6; color: #3F3F46; }
.il-no-comments { padding: 24px; text-align: center; background: #FAFAFC; border-radius: 8px; border: 1px dashed #CBD5E1; color: #64748B; font-size: 13.5px; }

/* FORMA ZA OCENJIVANJE */
.il-comment-form-wrap { background: #FDFDFE; border: 1px solid #E2E8F0; border-radius: 10px; padding: 24px 28px; }
.il-comment-form-title { font-size: 16px; font-weight: 800; color: var(--il-navy); margin: 0 0 16px 0; }
.il-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.il-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.il-form-group label { font-size: 13px; font-weight: 700; color: #334155; }
.il-req { color: var(--il-red); }
.il-form-group input[type="text"], .il-form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 13.5px; color: var(--il-navy); background: #ffffff; outline: none; transition: border-color 0.15s ease; font-family: inherit; }
.il-form-group input:focus, .il-form-group textarea:focus { border-color: var(--il-red); }
.il-star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; padding-top: 4px; }
.il-star-picker input { display: none; }
.il-star-picker label { font-size: 22px; color: #CBD5E1; cursor: pointer; transition: color 0.15s ease; margin: 0; }
.il-star-picker label:hover, .il-star-picker label:hover ~ label, .il-star-picker input:checked ~ label { color: var(--il-red); }
.il-form-action { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.il-btn-submit-review { background: var(--il-red); color: #ffffff; border: none; border-radius: 6px; padding: 10px 22px; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s ease; }
.il-btn-submit-review:hover { background: var(--il-red-hover); }
.il-form-notice-small { font-size: 12px; color: #64748B; display: inline-flex; align-items: center; gap: 5px; }


/* ZAŠTIĆENI PDF MODAL */
#ilUniversalModal { display: none; position: fixed; inset: 0; background: rgba(10, 10, 16, 0.88); backdrop-filter: blur(4px); z-index: 999999; align-items: center; justify-content: center; }
#ilModalBox { background: #191922; border-radius: 12px; width: 95%; max-width: 1140px; height: 90vh; max-height: 92vh; overflow: hidden; position: relative; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.il-modal-header-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: #14141B; border-bottom: 1px solid #2D2D3A; flex-shrink: 0; }
#ilModalTitle { font-size: 14.5px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.il-pdf-toolbar { display: flex; align-items: center; gap: 8px; }
.il-pdf-tool-btn { background: #252533; border: 1px solid #38384D; color: #ECECF0; padding: 6px 10px; border-radius: 5px; cursor: pointer; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.il-pdf-tool-btn:hover { background: var(--il-red); color: #ffffff; border-color: var(--il-red); }
.il-pdf-page-indicator, .il-pdf-zoom-indicator { color: #E2E8F0; font-size: 13px; font-weight: 700; padding: 0 4px; }
.il-pdf-tool-divider { width: 1px; height: 18px; background: #38384D; margin: 0 4px; }
.il-pdf-scroll-wrapper { width: 100%; height: calc(90vh - 54px); overflow-y: auto !important; overflow-x: auto !important; background: #0D0D12; padding: 24px 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 22px; scroll-behavior: smooth; }
.il-pdf-page-container { background: #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); border-radius: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.il-pdf-page-container canvas { display: block; }

/* UX OPTIMIZACIJE (SOCIAL SHARE, READ MORE, MOBILE STICKY BUY) */
/* Moderna svedena dugmad za deljenje (Social Share) */
.il-share-row { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.il-share-btn { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    border: 1px solid var(--il-border); 
    background: #f8fafc; 
    color: #475569; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.2s ease-in-out; 
}
.il-share-btn:hover { 
    background: var(--il-red); 
    color: #ffffff; 
    border-color: var(--il-red);
    transform: translateY(-2px); 
}
.btn-viber { background: #7360F2; }
.btn-whatsapp { background: #25D366; }
.btn-linkedin { background: #0A66C2; }
.btn-facebook { background: #1877F2; }

.il-prose-collapsed { max-height: 280px; overflow: hidden; position: relative; }
.il-prose-collapsed::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)); pointer-events: none; }
.il-read-more-btn { background: transparent; border: none; color: var(--il-red); font-weight: 700; font-size: 13.5px; padding: 10px 0 0 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.il-read-more-btn:hover { color: var(--il-red-hover); text-decoration: underline; }

.il-sticky-mobile-buy {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.18);
    padding: 12px 20px;
    z-index: 999999 !important;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(150%);
}

.il-sticky-mobile-buy.is-visible {
    transform: translateY(0);
}

.il-smb-price {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: var(--il-red) !important;
    white-space: nowrap !important;
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0 !important;
}

.il-smb-price small {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--il-navy) !important;
}

.il-sticky-mobile-buy .il-btn-add-primary {
    height: 44px !important;
    padding: 0 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    margin-left: auto !important;
    flex: 0 1 auto !important;
    white-space: nowrap !important;
}

@media (min-width: 992px) {
    .il-sticky-mobile-buy {
        display: none !important;
    }
}

/* RESPONZIVNOST KNJIGE */
@media (max-width: 991px) {
    .il-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .il-pdf-two-col, .il-video-two-col, .il-form-row { grid-template-columns: 1fr; }
    .il-reviews-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .il-nl-modern-inner { flex-direction: column; align-items: stretch; gap: 18px; }
    .il-nl-modern-form { min-width: 100%; width: 100%; }
}

@media (max-width: 576px) {
    .il-product-heading { font-size: 20px; }
    .il-numeric-price { font-size: 26px; }
    .il-action-row { flex-wrap: wrap; }
    .il-btn-add-primary { width: 100%; order: 3; }
    .il-specs-box { grid-template-columns: 1fr !important; }
    .il-form-action { flex-direction: column; align-items: flex-start; }
    .il-btn-submit-review { width: 100%; justify-content: center; }
}

/* Globalno usklađivanje headera i gornje trake sa šablonom sajta */
.header, header#header {
    width: 100% !important;
    max-width: 100% !important;
}

.top_nav {
    width: 100% !important;
    background-color: #1E1E27 !important;
    margin: 0 !important;
}

.top_nav .container,
.header .container,
.main_nav_container .container {
    max-width: 1220px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

.il-topbar, .top_nav {
    min-height: 37px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}
/* Kada je mobilni sticky bar vidljiv, pomeramo fiksne elemente desno gore */
@media (max-width: 991px) {
    body:has(#ilStickyBuy.is-visible) .back-to-top,
    body:has(#ilStickyBuy.is-visible) #scrollUp,
    body:has(#ilStickyBuy.is-visible) [id*="back-to-top"],
    body:has(#ilStickyBuy.is-visible) [class*="back-to-top"] {
        bottom: 75px !important; /* Podižemo ih iznad sticky trake */
        transition: bottom 0.3s ease !important;
    }
}
@media (max-width: 991px) {
    .il-global-footer {
        padding-bottom: 90px !important;
    }
}