:root { --navy: #0B3A67; --navy-light: #123F73; --navy-dark: #062F55; --gold: #B5985C; --gold-light: #C9B47E; --gold-dark: #96793C; --light: #F7F3EA; --light-2: #FAF8F2; --light-3: #EFE6D6; --text-dark: #333333; --text-mid: #666666; --border: #D8D8D8; --dark: var(--navy); }

*:not(.fas):not(.far):not(.fab):not(.fal):not(.fa) { font-family: 'Lora', Georgia, serif !important; }
body { font-family: 'Lora', Georgia, serif; background: #fff; color: var(--dark); font-size: 0.95rem; }
h1,h2,h3,h4,h5,h6 { font-family: 'Cormorant Garamond', Georgia, serif !important; }

/* ===== BREADCRUMB ===== */
.c-breadcrumb { background: #fff; padding: 10px 0; border-bottom: 1px solid #eee; }
.c-breadcrumb a { color: var(--gold); text-decoration: none; font-size: 0.85rem; }
.c-breadcrumb a:hover { text-decoration: underline; }
.c-breadcrumb span { color: #888; font-size: 0.85rem; }
.c-breadcrumb .sep { color: #ccc; margin: 0 6px; }

/* ===== PRODUCT SECTION ===== */
.p-section { padding: 30px 0 50px; }

/* Title */
.p-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; border-bottom: 3px solid var(--gold); padding-bottom: 10px; display: inline-block; }

/* ===== GALLERY ===== */
.p-gallery-main {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
}
.p-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.p-ribbon-new {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    background: #2e7d32;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,.18);
}
.p-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.p-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.p-thumb.active, .p-thumb:hover { border-color: var(--gold); }
.p-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ===== TABS ===== */
.p-tabs { display: flex; gap: 0; border-bottom: 1px solid #ddd; margin-bottom: 16px; }
.p-tab {
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: all 0.2s;
}
.p-tab.active { color: var(--dark); border-bottom-color: var(--dark); }
.p-tab:hover { color: var(--dark); }
.p-tab-content { display: none; font-size: 0.88rem; line-height: 1.7; color: #555; }
.p-tab-content.active { display: block; }

/* Prikaži više/manje */
.p-read-toggle {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 14px;
    background: #3b5998;
    color: #fff;
    font-size: 0.78rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.p-text-clamp { overflow: hidden; transition: max-height 0.3s; }

/* ===== RATING ===== */
.p-rating { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 0.85rem; }
.p-stars { color: #ccc; font-size: 1rem; letter-spacing: 2px; }
.p-rating a { color: var(--gold); text-decoration: none; font-size: 0.82rem; }
.p-rating a:hover { text-decoration: underline; }
.p-rating span { color: #888; }

/* ===== PRICE ===== */
.p-price { font-size: 2rem; font-weight: 700; color: var(--dark); margin: 10px 0 14px; font-family: 'Lora', Georgia, serif !important; }

/* ===== PRODUCT META ===== */
.p-meta { list-style: none; padding: 0; margin: 0 0 18px; }
.p-meta li { font-size: 0.82rem; color: #444; padding: 2px 0; }
.p-meta li::before { content: "•"; color: var(--gold); margin-right: 6px; }
.p-meta strong { color: var(--dark); }

/* ===== ADD TO CART ===== */
.p-cart-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.p-qty { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 3px; overflow: hidden; }
.p-qty input {
    width: 44px;
    text-align: center;
    border: none;
    padding: 8px 0;
    font-size: 0.9rem;
    -moz-appearance: textfield;
}
.p-qty input::-webkit-inner-spin-button,
.p-qty input::-webkit-outer-spin-button { opacity: 1; }
.p-qty-btns { display: flex; flex-direction: column; border-left: 1px solid #ddd; }
.p-qty-btns button {
    background: #f7f7f7;
    border: none;
    padding: 2px 8px;
    font-size: 0.65rem;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
}
.p-qty-btns button:hover { background: #eee; }
.p-qty-btns button:first-child { border-bottom: 1px solid #ddd; }

.btn-add-cart {
    background: #1a2a5e;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    min-width: 140px;
}
.btn-add-cart:hover { background: #253570; }
.btn-ask {
    background: #8B1A1A;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-ask:hover { background: #a52020; }

/* Wishlist / Compare */
.p-actions { display: flex; gap: 20px; font-size: 0.82rem; }
.p-actions a { color: #555; text-decoration: none; }
.p-actions a:hover { color: var(--gold); }
.p-actions i { margin-right: 4px; color: var(--gold); }

/* ===== TAGS ===== */
.p-tags { padding: 20px 0; border-top: 1px solid #eee; margin-top: 10px; font-size: 0.82rem; }
.p-tags strong { color: var(--dark); margin-right: 8px; }
.p-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e8e8e8;
    color: #555;
    border-radius: 3px;
    margin: 3px 3px 3px 0;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.2s;
}
.p-tag:hover { background: var(--gold); color: #fff; }

/* ===== FOOTER ===== */
.c-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 40px 0 20px; }
.c-footer h5 { color: var(--gold); font-size: 1rem; margin-bottom: 15px; }
.c-footer ul { list-style: none; padding: 0; margin: 0; }
.c-footer ul li { margin-bottom: 6px; font-size: 0.85rem; }
.c-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.c-footer a:hover { color: var(--gold); }
.c-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 30px; text-align: center; font-size: 0.85rem; }
.c-footer .payment-methods span { display: inline-block; margin: 0 5px; padding: 4px 10px; background: rgba(255,255,255,0.1); border-radius: 3px; font-size: 0.8rem; }

/* Product note expansion state controlled by js/pages/proizvod.js */
.p-text-clamp.is-expanded { max-height: none !important; }
