/* =========================================================
   ANTEP.BA — PREMIUM WEBSHOP
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #2d2119;

    background:
        radial-gradient(circle at 15% 10%, rgba(255,255,255,.95), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(213,180,139,.28), transparent 30%),
        linear-gradient(135deg, #f7f0e7 0%, #eee2d2 48%, #f8f3ed 100%);

    min-height: 100vh;
}

/* Lagani 3D osjećaj u pozadini */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.65),
            transparent 45%
        );

    opacity: .8;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 78px;
    padding: 0 6%;

    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(90,60,35,.10);

    box-shadow:
        0 8px 30px rgba(67,43,24,.08);
}

/* LOGO */

.brand {
    color: #2e2017;
    text-decoration: none;

    font-size: 27px;
    font-weight: 950;
    letter-spacing: -1px;
}

.brand span {
    color: #a86d35;
}

/* NAVIGACIJA */

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;

    min-height: 42px;
    padding: 0 17px;

    color: #3b2a20;
    text-decoration: none;

    font-size: 15px;
    font-weight: 750;

    border-radius: 12px;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.site-nav a:hover {
    background: #f0e4d6;
    color: #8c5427;
    transform: translateY(-1px);
}

/* KORPA */

.cart-link {
    position: relative;

    background: #2f2118 !important;
    color: #fff !important;

    box-shadow:
        0 7px 18px rgba(45,30,20,.18);
}

.cart-link:hover {
    background: #513725 !important;
    color: #fff !important;

    transform: translateY(-2px);
}

/* LOGIN */

.site-nav a[href*="login"] {
    border: 1px solid #d8c7b5;
}

/* REGISTRACIJA */

.site-nav .nav-btn {
    background: #a96e37;
    color: #fff;

    box-shadow:
        0 7px 18px rgba(169,110,55,.20);
}

.site-nav .nav-btn:hover {
    background: #8e572b;
    color: #fff;
}

/* ADMIN */

.admin-link {
    color: #8f241b !important;
    font-weight: 800;
}

/* =========================================================
   MAIN
   ========================================================= */

main {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding: 45px 0 80px;
}

/* =========================================================
   NASLOVI
   ========================================================= */

h1,
h2,
h3 {
    color: #2c2018;
}

h1 {
    font-size: clamp(30px, 4vw, 52px);
    letter-spacing: -1.5px;
}

h2 {
    font-size: 30px;
    letter-spacing: -.7px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    min-height: 390px;
    padding: 65px;

    display: flex;
    align-items: center;

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(255,255,255,.22),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #35251b,
            #65462f 55%,
            #9b7049
        );

    box-shadow:
        0 25px 60px rgba(61,39,23,.22);
}

/* 3D dekoracija hero-a */

.hero::after {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    right: -100px;
    bottom: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.24),
            rgba(255,255,255,0) 65%
        );

    transform: rotate(-20deg);
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 680px;

    color: white;
}

.hero h1 {
    margin: 0 0 18px;
    color: #fff;

    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.02;
}

.hero p {
    margin: 0 0 28px;

    color: rgba(255,255,255,.84);

    font-size: 18px;
    line-height: 1.65;
}

/* =========================================================
   BUTTONI
   ========================================================= */

.btn,
button,
input[type="submit"] {
    border: 0;
    cursor: pointer;

    font-family: inherit;
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 22px;

    border-radius: 13px;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #a96e37;
    color: #fff;

    box-shadow:
        0 10px 24px rgba(40,25,15,.18);
}

.btn-primary:hover {
    background: #8e572b;
}

.btn-dark {
    background: #2f2118;
    color: #fff;
}

.btn-light {
    background: #f4eadf;
    color: #493225;
}

/* =========================================================
   PROIZVODI
   ========================================================= */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.product-card {
    overflow: hidden;

    background: rgba(255,255,255,.88);

    border: 1px solid rgba(75,50,30,.09);
    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(68,44,25,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 50px rgba(68,44,25,.15);
}

.product-image {
    position: relative;
    overflow: hidden;

    aspect-ratio: 1 / 1;

    background: #eadfd2;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 9px;

    font-size: 19px;
}

.product-info p {
    margin: 5px 0;

    color: #78685c;
}

.product-price {
    margin-top: 15px;

    color: #9a602e;

    font-size: 23px;
    font-weight: 900;
}

/* =========================================================
   KARTICE
   ========================================================= */

.card {
    background: rgba(255,255,255,.9);

    border: 1px solid rgba(70,45,25,.08);
    border-radius: 22px;

    padding: 25px;

    box-shadow:
        0 12px 35px rgba(65,42,24,.08);
}

/* =========================================================
   FORME
   ========================================================= */

input,
select,
textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #d8c8b8;
    border-radius: 12px;

    background: rgba(255,255,255,.92);

    color: #30231b;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #a96e37;

    box-shadow:
        0 0 0 4px rgba(169,110,55,.10);
}

label {
    display: block;

    margin-bottom: 7px;

    color: #493529;

    font-size: 14px;
    font-weight: 750;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* =========================================================
   FLASH PORUKE
   ========================================================= */

.flash {
    margin: 20px auto;

    padding: 14px 18px;

    border-radius: 13px;

    font-weight: 700;
}

.flash.success {
    background: #e8f4e8;
    color: #285b31;
}

.flash.error {
    background: #fae7e4;
    color: #7a271d;
}

.flash.warning {
    background: #fff3d9;
    color: #79551d;
}

/* =========================================================
   TABELA
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;

    background: rgba(255,255,255,.9);

    border-radius: 18px;
    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(65,42,24,.07);
}

th,
td {
    padding: 15px;

    text-align: left;

    border-bottom: 1px solid #eee3d8;
}

th {
    background: #3a291e;
    color: #fff;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

td {
    color: #4d3c30;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 60px;
    padding: 45px 6%;

    background: #2d2119;

    color: rgba(255,255,255,.72);
}

footer a {
    color: #fff;
}

/* =========================================================
   MOBITEL
   ========================================================= */

@media (max-width: 950px) {

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .site-header {
        padding: 0 4%;
    }

    .hero {
        padding: 45px;
    }
}

@media (max-width: 700px) {

    .site-header {
        min-height: 70px;

        padding: 0 16px;
    }

    .brand {
        font-size: 23px;
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a {
        padding: 0 9px;

        min-height: 38px;

        font-size: 13px;
    }

    .site-nav .register-link {
        display: none;
    }

    main {
        width: calc(100% - 24px);

        padding-top: 25px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 330px;

        padding: 35px 25px;

        border-radius: 22px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .site-nav a[href*="login"] {
        display: none;
    }

    .cart-link {
        padding: 0 12px !important;
    }

    .hero {
        min-height: 300px;
    }
}