body { 
    margin: 0; 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Space Grotesk', sans-serif; /* Glavni font */
}

/* Dodaj ovo da resetuješ sve naslove koji možda vuku druge fontove */
h1, h2, h3, h4, h5, h6, span, p, button, input {
    font-family: 'Space Grotesk', sans-serif !important;
}

:root { --bg: #ffffff; --text: #000000; --border: #f0f0f0; --accent: #000000; }
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Space Grotesk', sans-serif; }

/* HEADER */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 4%; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: white; z-index: 1000;
}
.logo-center { font-family: 'Syne'; font-weight: 800; font-size: 1.5rem; cursor: pointer; text-align: center; }

/* HERO SECTION */
.hero-container { display: flex; flex-direction: column; }
.hero-slide {
    height: 75vh;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.3); /* 30% OVERLAY */
    display: flex; align-items: center; justify-content: center;
    color: white; text-align: center;
}
.hero-content h1 { font-family: 'Syne'; font-size: 4rem; margin: 0; }
.hero-content p { font-size: 1.1rem; max-width: 600px; margin: 15px auto; opacity: 0.9; }

/* NAVIGATION & GRID */
.cat-nav { display: flex; justify-content: center; gap: 30px; padding: 25px; border-bottom: 1px solid var(--border); }
.cat-nav span { font-size: 0.75rem; font-weight: 700; cursor: pointer; opacity: 0.5; transition: 0.2s; }
.cat-nav span:hover { opacity: 1; border-bottom: 1px solid black; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.p-card { background: white; padding: 20px; cursor: pointer; text-align: center; }
.p-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 15px; }

/* FOOTER DESIGN (NEWSLETTER + 4 COLUMNS) */
.site-footer { background: #fafafa; border-top: 1px solid var(--border); margin-top: 60px; }
.newsletter-strip { text-align: center; padding: 60px 4%; border-bottom: 1px solid var(--border); }
.newsletter-strip h3 { font-family: 'Syne'; font-size: 1.2rem; margin-bottom: 10px; }
.n-input { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.n-input input { border: 1px solid #ccc; padding: 12px; width: 300px; outline: none; }
.n-input button { background: black; color: white; border: none; padding: 12px 25px; cursor: pointer; font-weight: 700; }

.footer-columns { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 4%; }
.f-col h4 { font-size: 0.75rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.f-col ul { list-style: none; padding: 0; }
.f-col ul li { font-size: 0.8rem; opacity: 0.6; margin-bottom: 10px; cursor: pointer; }
.footer-bottom { padding: 30px 4%; border-top: 1px solid var(--border); text-align: center; font-size: 0.7rem; opacity: 0.4; }

/* DRAWER */
.drawer { position: fixed; right: -100%; top: 0; width: 380px; height: 100%; background: white; z-index: 2001; transition: 0.4s; padding: 30px; border-left: 1px solid var(--border); }
.drawer.open { right: 0; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.1); display: none; z-index: 2000; }
.buy-btn { width: 100%; background: black; color: white; border: none; padding: 18px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 0.8rem; }
.m-input { width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid var(--border); margin-bottom: 15px; outline: none; }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* FEATURED SECTION STYLES */
.featured-highlight {
    background: #ffffff;
    padding: 80px 4%;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.featured-text {
    margin-bottom: 50px;
}

.featured-text span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: #888;
}

.featured-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    margin: 10px 0;
    text-transform: uppercase;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.f-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.f-item:hover {
    transform: translateY(-10px);
}

.f-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 15px;
    background: #f9f9f9; /* Blaga pozadina za slike ako su prozirne */
}

.f-item h4 {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Prilagođavanje za mobitele */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-text h2 {
        font-size: 1.8rem;
    }
}

/* Stilovi za Checkout stranicu */
#checkout-page {
    padding: 80px 4%;
    background: #fff;
}

/* Glavni kontejner za formu - ovdje smanjujemo širinu */
.checkout-container {
    max-width: 600px; /* Smanjena širina */
    margin: 0 auto;   /* Centriranje forme */
    padding: 40px;
    border: 1px solid var(--border);
}

.checkout-container h2 {
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Stilovi za input polja unutar forme */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.checkout-form input:focus {
    border-color: #000;
}

/* Prilagođavanje za mobitele da ne bude preusko */
@media (max-width: 768px) {
    .checkout-container {
        width: 100%;
        padding: 20px;
    }
    }

/* MINI MENU */

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mini-menu-btn {
    background: none !important;
    border: none !important;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.mini-menu {
    display: none !important;
    position: absolute !important;
    top: 30px;
    left: 0;
    width: 170px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 99999;
}

.mini-menu.open {
    display: block !important;
}

.mini-menu div {
    display: block;
    padding: 12px 15px;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
}

.mini-menu div:hover {
    background: #f5f5f5;
}

/* CUSTOM ORDERS */

.custom-order-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 70px 4%;
}

.custom-order-container h2 {
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.custom-order-info {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.custom-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 20px 0 8px;
}

#custom-image {
    width: 100%;
    border: 1px solid #ddd;
    padding: 15px;
    background: white;
}

#custom-description {
    width: 100%;
    min-height: 160px;
    padding: 15px;
    border: 1px solid #ddd;
    resize: vertical;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
}

#custom-description:focus {
    border-color: #000;
}

.custom-word-count {
    text-align: right;
    font-size: 0.75rem;
    color: #888;
    margin: 8px 0 25px;
}

.custom-small-text {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
}

/* CUSTOM ORDER PRICES */

.custom-price-info {
    margin: 30px 0;
    padding: 22px;
    border: 1px solid #e5e5e5;
}

.custom-price-info h4 {
    margin: 0 0 18px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.custom-price-info p {
    display: flex;
    justify-content: space-between;
    margin: 9px 0;
    font-size: 0.85rem;
}

.custom-price-info small {
    display: block;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
    color: #777;
    font-size: 0.7rem;
    line-height: 1.6;
}

/* AZURE JEWELS GOTHIC LOGO */

.footer-logo-img {
    width: 190px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 15px;
}

/* =================================
   AZURE JEWELS - GOTHIC DETAILS
================================= */


/* Gothic logo i veliki naslovi */
.logo-center,
.hero-content h1 {
    font-family: 'UnifrakturCook', serif !important;
    letter-spacing: 1px;
}

.logo-center {
    font-size: 1.8rem;
}


/* Elegantni gothic naslovi */
.featured-text h2,
.newsletter-strip h3,
.custom-order-container h2,
.checkout-container h2,
.f-col h4 {
    font-family: 'Cinzel', serif !important;
}


/* Male gothic zvjezdice oko glavnog menija */
.cat-nav::before {
    content: "✦";
    font-size: 11px;
    opacity: 0.55;
    margin-right: 4px;
}

.cat-nav::after {
    content: "✦";
    font-size: 11px;
    opacity: 0.55;
    margin-left: 4px;
}


/* Elegantniji hover kategorija */
.cat-nav span {
    position: relative;
}

.cat-nav span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: #000;
    transition: 0.25s ease;
    transform: translateX(-50%);
}

.cat-nav span:hover::after {
    width: 100%;
}


/* =================================
   SUptilna paukova mreža
================================= */

.featured-highlight,
.newsletter-strip {
    position: relative;
    overflow: hidden;
}


/* Mreža gore lijevo */
.featured-highlight::before {
    content: "";
    position: absolute;
    top: -70px;
    left: -70px;
    width: 210px;
    height: 210px;
    opacity: 0.08;
    pointer-events: none;

    background:
        repeating-radial-gradient(
            circle at 0 0,
            transparent 0,
            transparent 19px,
            #000 20px,
            transparent 21px
        ),
        repeating-conic-gradient(
            from 0deg at 0 0,
            #000 0deg 1deg,
            transparent 1deg 20deg
        );
}


/* Mreža dole desno newslettera */
.newsletter-strip::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 190px;
    height: 190px;
    opacity: 0.07;
    pointer-events: none;

    background:
        repeating-radial-gradient(
            circle at 100% 100%,
            transparent 0,
            transparent 18px,
            #000 19px,
            transparent 20px
        ),
        repeating-conic-gradient(
            from 0deg at 100% 100%,
            #000 0deg 1deg,
            transparent 1deg 22deg
        );
}


/* =================================
   PRODUCT CARDS
================================= */

.p-card {
    position: relative;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.p-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    z-index: 2;
}


/* Mala gothic tačka na proizvodu */
.p-card h3::before {
    content: "✧";
    font-size: 9px;
    margin-right: 7px;
    opacity: 0.45;
}


/* =================================
   CUSTOM ORDER
================================= */

.custom-order-container {
    position: relative;
}

.custom-order-container::before {
    content: "✦  ◇  ✦";
    display: block;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 8px;
    opacity: 0.45;
    font-size: 11px;
}


/* Custom price okvir malo više gothic */
.custom-price-info {
    position: relative;
}

.custom-price-info::before,
.custom-price-info::after {
    position: absolute;
    font-size: 11px;
    opacity: 0.45;
}

.custom-price-info::before {
    content: "✦";
    top: 8px;
    left: 10px;
}

.custom-price-info::after {
    content: "✦";
    bottom: 8px;
    right: 10px;
}


/* =================================
   FOOTER
================================= */

.site-footer {
    position: relative;
}

.site-footer::before {
    content: "✦  AZURE JEWELS  ✦";
    display: block;
    text-align: center;
    padding-top: 22px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 4px;
    opacity: 0.35;
}


/* Gothic newsletter naslov */
.newsletter-strip h3 {
    letter-spacing: 2px;
}


/* Dugmad malo elegantnija */
.buy-btn,
.n-input button {
    letter-spacing: 1.5px;
    transition: 0.25s ease;
}

.buy-btn:hover,
.n-input button:hover {
    opacity: 0.78;
}

/* FONT KAO NA AZURE LOGOU */

.logo-center {
    font-family: 'UnifrakturMaguntia', cursive !important;
    font-size: 32px;
    font-weight: normal;
}

.hero-content h1 {
    font-family: 'UnifrakturMaguntia', cursive !important;
    font-weight: normal;
    letter-spacing: 1px;
}

/* ČITKIJI GOTHIC FONT */

.logo-center,
.hero-content h1 {
    font-family: 'Pirata One', serif !important;
    font-weight: 400;
    letter-spacing: 1px;
}

.logo-center {
    font-size: 30px;
}
/* =====================================
   GOTHIC SPIDER WEBS
===================================== */

/* omogućava ukrase bez uticaja na klikove */
.hero-container,
.custom-order-container,
.site-footer {
    position: relative;
}


/* PAUČINA 1 — HERO, GORE DESNO */
.hero-container::after {
    content: "🕸";
    position: absolute;
    top: 15px;
    right: 20px;

    font-size: 105px;
    line-height: 1;

    opacity: 0.55;
    filter: grayscale(1);

    z-index: 5;
    pointer-events: none;

    transform: rotate(5deg);
}


/* PAUČINA 2 — CUSTOM ORDER, LIJEVO */
.custom-order-container::after {
    content: "🕸";
    position: absolute;
    top: 80px;
    left: -25px;

    font-size: 90px;
    line-height: 1;

    opacity: 0.22;
    filter: grayscale(1);

    pointer-events: none;

    transform: rotate(-25deg);
}


/* PAUČINA 3 — FOOTER, DONJI DESNI UGAO */
.site-footer::after {
    content: "🕸";
    position: absolute;
    right: 5px;
    bottom: 0;

    font-size: 120px;
    line-height: 1;

    opacity: 0.18;
    filter: grayscale(1);

    pointer-events: none;

    transform: rotate(8deg);
}


/* NA MOBITELU IH MALO SMANJI */
@media (max-width: 768px) {

    .hero-container::after {
        font-size: 70px;
        right: 5px;
        top: 5px;
    }

    .custom-order-container::after {
        font-size: 60px;
        left: -15px;
    }

    .site-footer::after {
        font-size: 80px;
    }
}

/* ŠIŠMIŠI DESNO OD HEADER LOGA */

.logo-center {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-bats {
    width: 65px;
    height: auto;
    object-fit: contain;
    display: block;
}
/* HEADER LOGO - VRATI GOTHIC FONT */

.logo-center,
.logo-center span {
    font-family: 'Pirata One', serif !important;
    font-weight: 400 !important;
    letter-spacing: 1px;
}

.logo-center {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header-bats {
    width: 42px;
    height: auto;
    object-fit: contain;
    display: block;
}

.header-bats {
    width: 70px !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* FIX ZA IPHONE ZOOM NAKON CHECKOUTA */

@media (max-width: 768px) {

    input,
    textarea,
    select,
    .checkout-form input,
    .m-input,
    #custom-description {
        font-size: 16px !important;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #main-content,
    #home-page,
    .hero-container,
    .hero-slide,
    .featured-highlight {
        width: 100%;
        max-width: 100%;
    }
}
/* STABILNIJE UČITAVANJE PRODUCT SLIKA */

.p-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f7f7f7;
}

html {
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

.hero-container,
.hero-slide,
.hero-overlay,
.hero-content {
    touch-action: auto !important;
    overscroll-behavior: auto !important;
}

.hero-slide {
    transform: none !important;
    will-change: auto !important;
}
/* TEST - UGASI PAUCINE */

.featured-highlight::before,
.newsletter-strip::after,
.hero-container::after,
.custom-order-container::after,
.site-footer::after {
    display: none !important;
}
/* NOVI NAKIT SVAKE SUBOTE */

.new-drop-banner {
    width: 100%;
    padding: 32px 4%;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    border-bottom: 1px solid #f0f0f0;
}

.new-drop-text {
    margin: 0;
    font-family: 'Pirata One', serif !important;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #000;
    white-space: nowrap;
    text-align: center;
}

.new-drop-line {
    width: 180px;
    max-width: 18vw;
    height: 1px;
    background: #000;
    opacity: 0.3;
}

.new-drop-star {
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .new-drop-banner {
        padding: 25px 15px;
        gap: 10px;
    }

    .new-drop-text {
        font-size: 20px;
        white-space: normal;
        line-height: 1.2;
    }

    .new-drop-line {
        width: 45px;
        min-width: 25px;
    }
}

/* =====================================
   MOBILE CATEGORY MENU FIX
===================================== */

@media (max-width: 768px) {

    .cat-nav {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 4px !important;
        padding: 18px 8px !important;

        overflow: hidden;
    }

    .cat-nav span {
        font-size: 9px !important;
        letter-spacing: 0 !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* skloni ukrasne zvjezdice sa strane samo na mobitelu */
    .cat-nav::before,
    .cat-nav::after {
        display: none !important;
    }

    /* CHARMS sakrij samo iz ovog menija na telefonu */
    .cat-nav span:last-child {
        display: none !important;
    }
}

#country {
    background: #f7f7f7;
    color: #555;
}

/* =====================================
   SOLD OUT PRODUCTS
===================================== */

.product-image-wrap {
    position: relative;
    width: 100%;
}

.product-image-wrap img {
    display: block;
    width: 100%;
}

.sold-out-badge {
    position: absolute;
    top: 12px;
    left: 12px;

    background: #000;
    color: #fff;

    padding: 7px 11px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;

    z-index: 3;
}

.sold-out-card img {
    opacity: 0.55;
}

.detail-sold-out {
    width: 100%;
    padding: 20px;

    background: #eeeeee;
    color: #555;

    border: 1px solid #ddd;

    text-align: center;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}