/* ═══════════════════════════════════════════════════════════════
   product.css — Styles for product.html (individual product page)
   ═══════════════════════════════════════════════════════════════ */

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 0 14px;
    font-size: 12.5px;
    color: #888;
    flex-wrap: wrap;
}
.breadcrumb a { color: #888; transition: color 0.2s; }
.breadcrumb a:hover { color: #111; }
.bc-sep { color: #ccc; }
.bc-link { color: #888; cursor: pointer; }
.bc-link:hover { color: #111; }
.breadcrumb span:last-child { color: #111; font-weight: 600; }

/* PRODUCT PAGE MAIN */
.product-page-main { padding-bottom: 60px; background: #fff; }

/* PRODUCT LAYOUT GRID */
.product-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 20px 0 50px;
    align-items: start;
}

/* ── GALLERY ── */
.product-gallery-col { position: sticky; top: 20px; }

.product-gallery-layout {
    display: flex;
    gap: 16px;
}

.gallery-main-wrap {
    flex: 1;
    position: relative;
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
}
.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    padding: 10px;
}
.gallery-main-wrap:hover .gallery-main-img { transform: scale(1.04); }

.gallery-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 10.5px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 85px;
    flex-shrink: 0;
}
.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    opacity: 0.6;
    transition: all 0.2s;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
    border-color: #000;
}

/* SAFETY BADGES ROW */
.product-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}
.product-badges-row img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ── INFO PANEL ── */
.product-info-col { padding-top: 8px; }

.prod-category-pill {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.prod-title {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: 0.3px;
}

.prod-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.prod-stars { color: #FF7C3A; font-size: 18px; letter-spacing: 2px; }
.prod-rating-label { font-size: 12px; color: #aaa; }

/* PRICE */
.prod-price-block { margin-bottom: 16px; }
.prod-price {
    font-size: 30px;
    font-weight: 800;
    color: #111;
    display: block;
    line-height: 1;
}
.prod-price-note { font-size: 11px; color: #aaa; margin-top: 4px; display: block; }
.prod-price-hidden-label {
    display: none;
    font-size: 15px;
    color: #555;
    font-style: italic;
    margin-bottom: 16px;
}
body.prices-hidden .prod-price-block { display: none; }
body.prices-hidden .prod-price-hidden-label { display: block; }

/* SHORT DESC */
.prod-short-desc {
    font-size: 14.5px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* QUICK ATTRIBUTES */
.prod-quick-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.prod-attr-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    color: #333;
}
.prod-attr-chip strong { color: #111; }

/* CTA */
.prod-cta-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}
.btn-inquiry-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease;
}
.btn-inquiry-product:hover { background: var(--primary); }

.btn-back-catalog {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12.5px;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-back-catalog:hover { border-color: #111; color: #111; }

/* USP STRIP */
.prod-usp-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 18px;
}
.prod-usp-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #444;
    font-weight: 500;
}
.prod-usp-item svg { color: var(--primary); flex-shrink: 0; }

/* META INFO */
.prod-meta-info {
    font-size: 11.5px;
    color: #aaa;
    line-height: 1.8;
}
.prod-meta-info span { display: block; }
.prod-meta-info strong { color: #888; }

/* ── TABS ── */
.product-tabs-section {
    border-top: 2px solid #eee;
    margin-top: 10px;
    margin-bottom: 50px;
}
.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #eee;
}
.ptab {
    padding: 14px 28px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.ptab:hover { color: #111; }
.ptab.active { color: #111; border-bottom-color: #111; }

.product-tab-content { padding: 30px 0; }

/* DESCRIPTION */
.prod-full-description {
    font-size: 14.5px;
    color: #333;
    line-height: 1.85;
    max-width: 100%;
}

.elementor-scraped-wrapper {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13.5px;
    line-height: 1.6;
    color: #666; /* Lighter text color to match original */
}
.elementor-scraped-wrapper h3,
.elementor-scraped-wrapper h4,
.elementor-scraped-wrapper strong {
    color: #222; /* Darker headings */
}
.elementor-scraped-wrapper p {
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}
.elementor-scraped-wrapper img {
    max-width: 100%;
    height: auto;
}
/* Fix Elementor SVGs sizes based on their container type */
.elementor-scraped-wrapper .elementor-icon svg {
    width: 42px; /* Original icons are larger */
    height: 42px;
    fill: #000; /* Original icons are solid black */
    color: #000;
    display: inline-block;
}
.elementor-scraped-wrapper .elementor-widget-icon-list-icon svg,
.elementor-scraped-wrapper .elementor-icon-list-icon svg {
    width: 1em;
    height: 1em;
    max-width: 14px; /* Small checkmarks */
    display: inline-block;
}
.elementor-scraped-wrapper svg {
    max-width: 50px;
    height: auto;
}

/* Fix Elementor Icon Lists (Checkmarks, Orange bullets) */
.elementor-scraped-wrapper .elementor-icon-list-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.elementor-scraped-wrapper .elementor-icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 12.5px;
    line-height: 1.4;
    color: #555;
}
.elementor-scraped-wrapper .elementor-icon-list-item:last-child {
    border-bottom: none;
}
.elementor-scraped-wrapper .elementor-icon-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}
.elementor-scraped-wrapper .elementor-icon-list-icon i,
.elementor-scraped-wrapper .elementor-icon-list-icon svg {
    width: 12px;
    height: 12px;
    fill: #000; /* Checkmarks are black in original */
    color: #000;
}

/* Ensure basic flex grid for Elementor containers if globals fail */
/* Commented out to let elementor-styles.css handle native layout structure
.elementor-scraped-wrapper .e-con,
.elementor-scraped-wrapper .e-flex {
    display: var(--display, flex);
    flex-wrap: wrap;
    gap: var(--gap, 20px);
}
.elementor-scraped-wrapper .e-grid {
    display: var(--display, grid);
    grid-template-columns: var(--e-con-grid-template-columns, var(--grid-template-columns, 100%));
    grid-template-rows: var(--e-con-grid-template-rows, var(--grid-template-rows, auto));
    gap: var(--grid-row-gap, var(--gap, 20px)) var(--grid-column-gap, var(--gap, 20px));
    width: 100%;
}
.elementor-scraped-wrapper .e-grid:has(> :nth-child(2)) {
    grid-template-columns: var(--e-con-grid-template-columns, var(--grid-template-columns, repeat(auto-fit, minmax(140px, 1fr))));
}
.elementor-scraped-wrapper .elementor-widget {
    display: block;
    width: 100%;
    max-width: 100%;
}
.elementor-scraped-wrapper .e-con-inner {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.elementor-scraped-wrapper .e-child {
    flex: var(--flex-grow, var(--container-widget-flex-grow, 1)) 1 var(--container-widget-width, auto);
    min-width: 0;
}
*/
.elementor-scraped-wrapper .elementor-widget-wrap {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.elementor-scraped-wrapper .e-con-boxed {
    max-width: 1140px;
    margin: 0 auto;
}
.desc-text {
    margin-bottom: 16px;
}
h2.desc-text, h3.desc-text, h4.desc-text, h5.desc-text {
    color: #111;
    margin-top: 32px;
    margin-bottom: 16px;
    font-family: var(--font-header);
    font-weight: 700;
}
.desc-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 24px 0;
    display: block;
}
.desc-list {
    padding-left: 0;
    margin-bottom: 24px;
    list-style: none;
}
.desc-list li {
    position: relative;
    padding: 12px 16px 12px 30px;
    margin-bottom: 8px;
    background: #fbfbfb;
    border: 1px solid #ebebeb;
    border-radius: 4px;
}
.desc-list li::before {
    content: "•";
    position: absolute;
    left: 12px;
    color: var(--primary);
    font-size: 20px;
    top: 12px;
    line-height: 1;
}

/* SPEC TABLE */
.prod-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-top: 1px solid #ebebeb;
    margin-bottom: 30px;
}
.prod-spec-table tr { border-bottom: 1px solid #ebebeb; }
.prod-spec-table td { 
    padding: 15px 20px; 
    vertical-align: middle; 
}
.prod-spec-table td:first-child {
    width: 250px;
    font-weight: 600;
    color: #555;
    background: #fbfbfb;
}
.prod-spec-table td:last-child { 
    color: #111; 
    background: #ffffff;
}

/* RELATED */
.related-products-section { margin-bottom: 60px; }
.related-title {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    background: none; border: none;
    color: #fff; font-size: 36px;
    cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    font-size: 48px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .product-page-layout { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery-col { position: static; }
}
@media (max-width: 600px) {
    .prod-title { font-size: 22px; }
    .prod-price { font-size: 24px; }
    .gallery-thumb { width: 56px; height: 56px; }
    .ptab { padding: 12px 16px; font-size: 12px; }
}


/* ════════════════════════════════════════════════════════════════
   CATEGORY PAGE STYLES  (kategoria.html)
   ════════════════════════════════════════════════════════════════ */

/* BREADCRUMB TITLE BAR (Original Site Matching) */
.breadcrumb-title-wrapper.breadcrumb-v3 {
    background: #f5f5f5 !important;
    padding: 30px 0 !important;
    margin-bottom: 50px !important;
    border-bottom: 1px solid #eee !important;
}
.breadcrumb-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.breadcrumb-title-wrapper.breadcrumb-v3 h1.page-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
    line-height: 1.3 !important;
}
.ts-breadcrumbs.breadcrumbs {
    font-size: 13px !important;
    color: #818388 !important;
    font-family: 'Inter', sans-serif !important;
}
.breadcrumbs-container a {
    color: #818388 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.breadcrumbs-container a:hover {
    color: #ff7c3a !important;
}
.brn_arrow {
    margin: 0 8px !important;
    color: #d1d1d1 !important;
}
.breadcrumbs-container span:last-child,
.breadcrumbs-container #bc-cat-name {
    color: #000000 !important;
    font-weight: 400 !important;
}

/* Subcategories Grid (#subcats-grid) */
.list-categories {
    margin-bottom: 40px;
    width: 100%;
}
#subcats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 220px)) !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 auto 30px auto !important;
    padding: 0 !important;
}
#subcats-grid .product-category {
    cursor: pointer !important;
    text-decoration: none !important;
}
#subcats-grid .product-category:hover .wp-post-image {
    opacity: 1 !important; /* Prevent image from disappearing on hover since there is no back image */
}
#subcats-grid .product-category .count {
    display: block !important;
    font-size: 11px !important;
    color: #8e8e93 !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    margin-top: auto !important; /* Push count to the bottom just like price tags */
    text-transform: none !important;
}
#subcats-grid .product-category.active-subcat {
    border: 2px solid var(--primary) !important;
}


/* CATEGORY PAGE LAYOUT */
.cat-page-main { padding-bottom: 60px; background: #fff; }

.cat-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 30px 0;
    align-items: start;
}

/* SIDEBAR */
.cat-sidebar { position: sticky; top: 20px; }

.cat-sidebar-block {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}
.cat-sidebar-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cat-filter-list { list-style: none; padding: 0; margin: 0; }
.cat-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s;
}
.cat-filter-item:hover { color: #111; }
.cat-filter-item.active { color: #111; font-weight: 700; }
.cat-filter-item .cat-filter-count {
    margin-left: auto;
    font-size: 11px;
    color: #bbb;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1px 7px;
}

/* CATEGORIES NAV BLOCK */
.cat-nav-block { list-style: none; padding: 0; margin: 0; }
.cat-nav-item {
    border-bottom: 1px solid #f0f0f0;
}
.cat-nav-item:last-child { border-bottom: none; }
.cat-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 12.5px;
    color: #444;
    transition: color 0.15s;
}
.cat-nav-link:hover { color: var(--primary); }
.cat-nav-link.active { color: #111; font-weight: 700; }
.cat-nav-count { font-size: 11px; color: #bbb; }

/* MAIN CONTENT AREA */
.cat-content { min-width: 0; }

/* SORT & FILTER BAR */
.cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.cat-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cat-serie-btn {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.cat-serie-btn:hover { border-color: #111; color: #111; }
.cat-serie-btn.active {
    background: #111;
    border-color: #111;
    color: #fff;
}
.cat-result-count {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}

.cat-sort-select {
    padding: 7px 32px 7px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    color: #444;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* EMPTY STATE */
.cat-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.cat-empty svg { display: block; margin: 0 auto 16px; }

/* PAGINATION (simple) */
.cat-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.cat-page-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.cat-page-btn.active, .cat-page-btn:hover { background: #111; border-color: #111; color: #fff; }

@media (max-width: 900px) {
    .cat-layout { grid-template-columns: 1fr; gap: 20px; }
    .cat-sidebar { position: static; display: block; width: 100%; }
    .cat-sidebar-block:first-child { display: none; }
    .cat-sidebar-block { padding: 15px; margin-bottom: 12px; }
    .cat-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .cat-filter-item {
        background: #f5f5f7;
        border: 1px solid #e5e5e7;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        color: #444;
        transition: all 0.2s;
    }
    .cat-filter-item:hover { background: #e5e5e7; color: #111; }
    .cat-filter-item.active { background: #111; border-color: #111; color: #fff; font-weight: 600; }
    .cat-filter-item .cat-filter-count {
        margin-left: 6px;
        background: rgba(0,0,0,0.06);
        color: #888;
        padding: 1px 6px;
        font-size: 10px;
        border-radius: 10px;
    }
    .cat-filter-item.active .cat-filter-count {
        background: rgba(255,255,255,0.2);
        color: #fff;
    }
    .breadcrumb-title-wrapper.breadcrumb-v3 { padding: 20px 0 !important; }
    .breadcrumb-title-wrapper.breadcrumb-v3 h1.page-title { font-size: 20px !important; }
    .breadcrumb-title { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
}
@media (max-width: 600px) {
    .breadcrumb-title-wrapper.breadcrumb-v3 { padding: 16px 0 !important; }
    .breadcrumb-title-wrapper.breadcrumb-v3 h1.page-title { font-size: 20px !important; }
    .cat-toolbar { flex-direction: column; align-items: flex-start; }
}
