/* ===================================================
   NASLOVNICA SHOP — Oslobođenje Figma-exact
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --red: #ED1C24;
    --red-dark: #9A1824;
    --dark: #282828;
    --dark-2: #1e1e1e;
    --white: #ffffff;
    --bg: #F2F0EC;
    --bg-card: #ffffff;
    --bg-input: #F8F7F5;
    --antracit:#303640;
    --border: #E0DEDA;
    --text: #1A1A1A;
    --text-2: #4A4A4A;
    --text-3: #7A7A7A;
    --text-4: #A0A0A0;
    --light-white:#fbfbfb;
    --success: #1B8A4A; --success-bg: #EDFBF3;
    --error: #BE1E2D; --error-bg: #FDF2F2;
    --info: #1A6BB5; --info-bg: #EDF4FB;
    --warning: #C07D1A; --warning-bg: #FDF8ED;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', 'Source Sans 3', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 8px;
    --radius-lg: 12px;
    --no-radius:0px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --ease: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--light-white); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }

/* ==========================================================================
   HEADER — White, clean, NO red border
   ========================================================================== */
.site-header {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 100;
    box-shadow: 0 10px 20px 0px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-logo-left { text-decoration: none; display: flex; align-items: center; }
.header-logo-left img { height: 20px; display: block; }

.header-logo-center { text-decoration: none; display: flex; align-items: center; }
.header-logo-center img { height: 44px; display: block; }

.header-nav { display: flex; gap: 0.4rem; justify-content: flex-end; align-items: center; }
.header-nav-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; border-radius: 6px; font-size: 1.1rem; transition: color var(--ease); }
.header-nav-btn:hover { color: var(--red); }
.header-nav-menu img { display: block; width: 28px; height: 28px; }

/* ==========================================================================
   HERO — DARK bg, video right, white text left
   ========================================================================== */
.hero {
    position: relative;
    overflow: visible;
    background: var(--bg);
    background-image: url('../img/bg-section-hero.png');
    background-size: cover;
    background-position: center;
    margin-top: -70px;
    min-height: 550px;
    display: flex;
    align-items: center;
}

/* No dark newspaper texture needed — bg image IS the texture */
.hero::before {
    display: none;
}



.hero-video-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    overflow: visible;
}

.hero-video {
    position: absolute;
    right: -10%;
    width: 110%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    display: block;
}

.hero-overlay { display: none; }

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: end;
    justify-content: start;
    padding:200px 0 40px;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height:600px;
    border-bottom:4px solid var(--red);
}

.hero-content { max-width: 440px; position: relative; z-index: 3; }

.hero-content h1 {
    font-family: var(--sans);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 1rem;
    color: var(--antracit);
}

.hero-content h1 strong { font-weight: 900; display: block; }

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-2);
    max-width: 400px;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--ease);
}

.btn-cta:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(190,30,45,0.35); }

/* ==========================================================================
   STEPS — Light bg with newspaper texture
   ========================================================================== */
.steps-section {
    background: var(--white);
    background-image: url('../img/bg-section2.png');
    background-size: cover;
    background-position: center;
}

.steps-inner { max-width: 1100px; margin: 0 auto; text-align: center; border-bottom:4px solid var(--red); padding:4rem 0; }

.steps-section h2 {
    font-family: var(--sans);
    font-size: clamp(1.3rem, 3vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    color: var(--antracit);
}
.steps-section h2 strong { font-weight: 900; }

.steps-grid { display: flex; align-items: flex-start; justify-content: center; }

.step { flex: 1; max-width: 30%; padding: 0 1rem; }
.step-number { font-family: var(--sans); font-size: 3.6rem; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 0.4rem; }
.step h3 { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--antracit); }
.step p { font-size: 1.10rem; color: var(--antracit); line-height: 1.5; }

.step-dots { display: flex; gap: 6px; align-items: center; padding-top: 1.8rem; flex-shrink: 0; }
.step-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); opacity: 0.4; }
.step-dots span:nth-child(2) { opacity: 0.65; }

.steps-cta { margin-top: 2rem; }

/* ==========================================================================
   DATE SECTION — DARK bg, newspaper texture, white card
   ========================================================================== */
.search-section {
    background: var(--light-white);
    position: relative;
    padding: 3.5rem 2rem 5rem;
    text-align: center;
    overflow: hidden;
}

/* Faint newspaper texture behind white */
.search-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/bg-section3-alt.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat:no-repeat;
    opacity: 1;
    pointer-events: none;
}

.search-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

.search-section h2 {
    font-family: var(--sans);
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 0.6rem;
    color: var(--antracit);
}
.search-section h2 strong {
    color: var(--red);
}

.search-subtitle {
    font-size: 1.10rem;
    color: var(--antracit);
    width:60%;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.date-card {
    margin-top:4rem;
    background: rgba(255,255,255,0.8);
    border: 4px solid var(--red);
    border-radius: var(--no-radius);
    padding: 2.6rem 4.5rem;
    text-align: left;
    box-shadow: var(--shadow-lg);
}

.date-card h3 {
    font-family: var(--sans);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--antracit);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.date-card h3 i { color: var(--red); }

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.8rem;
    align-items: end;
}

.date-field label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group { margin-bottom: 0; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 0.35rem; font-weight: 600; }

select, input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="password"], input[type="url"],
input[type="number"], textarea {
    width: 100%; padding: 0.6rem 0.85rem;
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 0.95rem; font-family: var(--sans);
    transition: border-color var(--ease), box-shadow var(--ease);
}
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7A7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.85rem center;
    padding-right: 2.3rem; cursor: pointer; appearance: none; -webkit-appearance: none;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(190,30,45,0.08); }
textarea { resize: vertical; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 1.3rem; border: none; border-radius: var(--radius); font-family: var(--sans); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all var(--ease); text-decoration: none; white-space: nowrap; line-height: 1.4; }
.btn i { font-size: 0.85em; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(190,30,45,0.25); }
.btn-secondary { background: var(--white); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.btn-search { background: var(--red); color: var(--white); width: 100%; padding: 0.6rem 1.6rem; font-weight: 700; }
.btn-search:hover { background: var(--red-dark); }
.btn-search:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1.02rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ==========================================================================
   LOADING / ALERTS
   ========================================================================== */
.loader { text-align: center; padding: 2.5rem 1rem; display: none; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 0.8rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader p { color: var(--text-3); font-size: 0.9rem; }
.progress-bar { width: 180px; height: 3px; background: var(--border); border-radius: 2px; margin: 0.8rem auto 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); border-radius: 2px; width: 0; animation: progress 2s ease-in-out forwards; }
@keyframes progress { 0%{width:0} 50%{width:60%} 80%{width:85%} 100%{width:95%} }

.alert { padding: 0.8rem 1rem; border-radius: var(--radius); margin: 1rem 0; font-size: 0.9rem; display: none; }
.alert.show { display: block; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #E8C4C4; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #B8E0C8; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #B8D4E8; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #E8D8B8; }

/* ==========================================================================
   PREVIEW + ORDER PANEL
   ========================================================================== */
.preview-section { display: none; max-width: 1100px; margin: 4rem auto 3rem; background:var(--light-white); }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

.preview-image { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--no-radius); padding: 1.2rem; text-align: center; box-shadow: var(--shadow); }
.preview-image img { max-width: 100%; max-height: 480px; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.preview-date { font-family: var(--sans); font-size: 1.1rem; color: var(--red); margin-top: 0.8rem; font-weight: 700; }

.order-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--no-radius); padding: 1.6rem; box-shadow: var(--shadow); }
.order-panel h3 { font-family: var(--sans); font-size: 1.15rem; margin-bottom: 1rem; }

/* Product options */
.products { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.product-opt { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; background: var(--bg-input); border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: all var(--ease); }
.product-opt:hover { background: #F0EFED; }
.product-opt.active { border-color: var(--red); background: rgba(190,30,45,0.04); }
.product-opt .dot { width: 16px; height: 16px; border: 2px solid var(--border); border-radius: 50%; flex-shrink: 0; position: relative; transition: all var(--ease); }
.product-opt.active .dot { border-color: var(--red); }
.product-opt.active .dot::after { content:''; position:absolute; top:2px; left:2px; width:8px; height:8px; background:var(--red); border-radius:50%; }
.product-opt .info { flex: 1; }
.product-opt .info .name { font-weight: 600; font-size: 0.88rem; }
.product-opt .info .desc { font-size: 0.78rem; color: var(--text-3); }
.product-opt .price { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--red); white-space: nowrap; }

/* Checkout */
.checkout-form { display: none; margin-top: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.checkout-form .form-group { margin-bottom: 0.7rem; }
.delivery-fields { display: none; padding-top: 0.8rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.delivery-fields h4 { font-family: var(--serif); font-size: 0.95rem; margin-bottom: 0.7rem; color: var(--text-2); display: flex; align-items: center; gap: 0.4rem; }
.summary { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; margin: 1rem 0; }
.summary-row { display: flex; justify-content: space-between; padding: 0.25rem 0; font-size: 0.85rem; color: var(--text-2); }
.summary-total { display: flex; justify-content: space-between; padding-top: 0.6rem; margin-top: 0.6rem; border-top: 1px solid var(--border); font-weight: 700; }
.summary-total .amount { color: var(--red); font-family: var(--serif); font-size: 1.15rem; }

/* Result pages */
.result-page { max-width: 540px; margin: 3rem auto; padding: 0 1.5rem; text-align: center; }
.result-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.result-card .icon { font-size: 2.5rem; margin-bottom: 0.6rem; color: var(--success); }
.result-card .icon.error { color: var(--error); }
.result-card h2 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.6rem; }
.result-card p { color: var(--text-2); }

/* ==========================================================================
   FOOTER — Dark
   ========================================================================== */
.site-footer { background: var(--antracit); padding: 1.5rem 0; margin-top: 0; }
.footer-inner { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-logo { font-family: var(--sans); font-size: 1.10rem; font-style: normal; color: var(--white); text-decoration: none; opacity: 1; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--white); border-radius: 50%; text-decoration: none; font-size: 0.75rem; transition: all var(--ease); color:var(--antracit);}
.footer-social a:hover { color: var(--white); border-color: var(--red); background:var(--red); }
.footer-logo-left {
    margin: 0;
    padding: 0;
    line-height: 1;
}
.footer-copy { font-size: 0.7rem;
    color: var(--white); letter-spacing: 0.04em; text-transform: uppercase; text-align: right; }
.footer-copy a { color: var(--white); text-decoration: none; }
.footer-copy a:hover {color:var(--red);}
.footer-copy strong {
    font-weight:900;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.35s ease forwards; }

/* ==========================================================================
   MOBILE — max 768px
   ========================================================================== */
@media (max-width: 768px) {

    /* --- Header --- */
    .site-header { height: 56px; }
    .header-inner { padding: 0 1rem; }
    .header-logo-left img { height: 14px; }
    .header-logo-center img { height: 32px; }
    .header-nav-btn { width: 32px; height: 32px; font-size: 1rem; }
    .header-nav-menu img { width: 24px; height: 24px; }

    /* --- Hero --- */
    .hero {
        margin-top: -56px;
        min-height: auto;
    }
    .hero-inner {
        min-height: auto;
        padding: 110px 1.5rem 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-bottom: 3px solid var(--red);
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }
    .hero-video-wrap {
        position: relative;
        width: 110%;
        height: 280px;
        opacity: 1;
        margin-top: 1.5rem;
        overflow: visible;
    }
    .hero-video {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 100%;
        right: auto;
        object-position: center bottom;
        object-fit: contain;
    }

    /* --- Steps --- */
    .steps-inner { padding: 2.5rem 1.5rem; }
    .steps-section h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
    .steps-grid { flex-direction: column; align-items: center; gap: 1.5rem; }
    .step-dots { display: none; }
    .step { max-width: 100%; width: 100%; padding: 0; }
    .step-number { font-size: 2.5rem; }
    .step h3 { font-size: 1.1rem; }
    .step p { font-size: 0.95rem; }
    .steps-cta { margin-top: 1.5rem; }

    /* --- Search / Date picker --- */
    .search-section { padding: 2.5rem 1rem 3.5rem; }
    .search-section h2 { font-size: 1.3rem; }
    .search-subtitle { width: 100%; font-size: 0.95rem; }
    .date-card {
        padding: 1.5rem 1.2rem;
        margin-top: 2rem;
        border-width: 3px;
    }
    .date-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .date-field-btn { grid-column: 1 / -1; }
    .btn-search { min-height: 48px; font-size: 16px; }

    /* Bigger form fields on mobile — prevents iOS zoom + easier to tap */
    select, input[type="text"], input[type="email"], input[type="tel"],
    input[type="password"], input[type="url"], input[type="number"], textarea {
        font-size: 16px;
        padding: 0.75rem 0.85rem;
        min-height: 48px;
    }
    select {
        min-height: 48px;
    }

    /* --- Preview / Order --- */
    .preview-section { margin: 2rem auto; padding: 0 1rem; }
    .preview-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .preview-image { padding: 0.8rem; }
    .preview-image img { max-height: 350px; }
    .order-panel { padding: 1.2rem; }

    /* --- Checkout --- */
    .form-row { grid-template-columns: 1fr; gap: 0.6rem; }

    /* --- Footer --- */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    .footer-brand { flex-direction: column; gap: 0.8rem; }
    .footer-copy { text-align: center; font-size: 0.6rem; }
}

/* ==========================================================================
   MOBILE — max 480px (small phones)
   ========================================================================== */
@media (max-width: 480px) {
    .header-logo-left { display: none; }
    .header-inner { grid-template-columns: 1fr auto; }
    .hero-inner { padding: 90px 1rem 0; }
    .hero-video-wrap { height: 220px; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content p { font-size: 0.9rem; }
    .date-card { padding: 1.2rem 1rem; }
    .date-row { grid-template-columns: 1fr; }
    .btn-cta { padding: 0.7rem 1.5rem; font-size: 0.78rem; }
    .steps-inner { padding: 2rem 1rem; }
}