* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --bg-color: #faf9f6;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --gradient-hover: linear-gradient(135deg, #0369a1 0%, #0f766e 100%);
    --border-color: #e2e8f0;
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 20px 40px rgba(2, 132, 199, 0.12);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 120px;
    opacity: 0;
    animation: fadeInPage 0.8s ease forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- NAVIGACIJA --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 70px;
    height: 70px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 18px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-browse {
    border: 1px solid var(--border-color);
    padding: 9px 20px;
    border-radius: 24px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
}

/* --- STRANICA PROIZVODA --- */
.product-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.gallery-section {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    min-width: 0;
    top: 135px;
    position: sticky;
}

.main-image-frame {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-md);
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}


.main-image-frame img:hover {
    transform: scale(1.01);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 5;
    user-select: none;
}

.nav-arrow:hover {
    background: var(--text-main);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.nav-arrow.prev {
    left: 16px;
}

.nav-arrow.next {
    right: 16px;
}

.thumbnails-row {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumb-btn {
    width: 90px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-btn.active,
.thumb-btn:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
}

/* Desna kolona info */
.info-section {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.tag {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
}

/* --- NAPREDNA I VELIKA DESKRIPCIJA (READ MORE) --- */
.description-container {
    position: relative;
    max-height: 160px;
    /* Visina dok je zatvoreno */
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 8px;
}

.description-container.expanded {
    max-height: 3000px;
    /* Dovoljno prostora da se sve odmotava */
}

/* Premium beli fejd na dnu koji sakriva tekst dok se ne klikne */
.description-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to top, var(--bg-color) 15%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.description-container.expanded::after {
    opacity: 0;
    /* Sklanja fejd kada je tekst ceo prikazan */
}

.product-description {
    color: var(--text-main);
    font-size: 1.25rem;
    /* Baš veliki, luksuzan i čitljiv font */
    line-height: 1.75;
    /* Veći prored radi savršene čitljivosti */
    font-weight: 400;
}

.product-description p {
    margin-bottom: 18px;
}

/* Moderno dugme za proširivanje teksta */
.btn-read-more {
    background: none;
    border: none;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 36px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.btn-read-more:hover {
    color: #0d9488;
}

.payhip-buy-button {
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-buy:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 85%;
    max-height: 80%;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-lightbox {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    user-select: none;
}

.lightbox-arrow:hover {
    background: #fff;
    color: var(--text-main);
}

.lightbox-arrow.prev {
    left: 32px;
}

.lightbox-arrow.next {
    right: 32px;
}

/* --- RECENZIJE --- */
.reviews-section {
    margin-top: 90px;
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.reviews-section h2 {
    font-size: 1.8rem;
    margin-bottom: 36px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.rating-stars {
    color: #f59e0b;
    margin-bottom: 14px;
}

.review-quote {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.review-user {
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        position: relative;
        top: 0;
    }
}