/* Font display fix for faster rendering */@font-face { font-family: "Glyphicons Halflings"; font-display: swap; }@font-face { font-family: "FontAwesome"; font-display: swap; }@font-face { font-family: "revicons"; font-display: swap; }
/* ===== PRODUCT V2 STYLES ===== */
.v2-product { padding: 0 0 30px; }
.v2-product .breadcrumb { background: none; padding: 8px 0; margin-bottom: 15px; font-size: 13px; }

/* Gallery */
.v2-gallery { position: relative; }
.v2-gallery .v2-main-img { text-align: center; border: 1px solid #e8e8e8; border-radius: 6px; padding: 15px; margin-bottom: 10px; background: #fff; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.v2-gallery .v2-main-img img { max-width: 100%; height: auto; max-height: 400px; }
.v2-gallery .v2-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-gallery .v2-thumbs a { display: block; width: 70px; height: 70px; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; padding: 4px; cursor: pointer; }
.v2-gallery .v2-thumbs a:hover, .v2-gallery .v2-thumbs a.active { border-color: #c9962a; }
.v2-gallery .v2-thumbs img { width: 100%; height: 100%; object-fit: contain; }
/* Gallery tabs */
.v2-gallery-tabs { display: flex; gap: 0; margin-bottom: 10px; border-bottom: 2px solid #e8e8e8; }
.v2-gallery-tab { padding: 8px 18px; font-size: 13px; font-weight: 600; color: #777; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.v2-gallery-tab:hover { color: #c9962a; }
.v2-gallery-tab.active { color: #c9962a; border-bottom-color: #c9962a; }
.v2-gallery-tab i { font-size: 14px; }
.v2-gallery-panel { display: none; }
.v2-gallery-panel.active { display: block; }
/* Video in gallery */
.v2-gallery-video { text-align: center; padding: 10px; }
.v2-gallery-video video { max-width: 100%; max-height: 420px; border-radius: 6px; background: #000; }
/* 3D 360 viewer */
.v2-3d-viewer { width: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: grab; user-select: none; position: relative; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; }
.v2-3d-viewer:active { cursor: grabbing; }
.v2-3d-viewer img { max-width: 90%; max-height: 400px; display: block; margin: 0 auto; pointer-events: none; }
.v2-3d-badge { position: absolute; top: 12px; left: 12px; background: #c9962a; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; display: flex; align-items: center; gap: 5px; }
.v2-3d-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: #c9962a; border-radius: 0 0 6px 6px; transition: width 0.1s; }
.v2-3d-hint { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 6px 16px; border-radius: 20px; pointer-events: none; transition: opacity .5s; display: flex; align-items: center; gap: 6px; }
.v2-3d-hint i { animation: v2-swipe 1.5s ease-in-out infinite; }
@keyframes v2-swipe { 0%,100%{transform:translateX(0)} 50%{transform:translateX(10px)} }

/* Info panel */
.v2-info { }
.v2-info h1 { font-size: 22px; font-weight: 700; margin: 0 0 12px; line-height: 1.3; color: #222; }
.v2-info .v2-rating-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.v2-info .v2-stars { color: #ffa000; font-size: 14px; }
.v2-info .v2-stars .empty { color: #ccc; }
.v2-info .v2-reviews-link { color: #b3831f; font-size: 13px; cursor: pointer; text-decoration: underline; }
.v2-info .v2-sku { color: #888; font-size: 13px; }

/* Specs table (top) */
.v2-specs-top { margin: 15px 0; }
.v2-specs-top table { width: 100%; }
.v2-specs-top td { padding: 6px 0; font-size: 14px; vertical-align: top; }
.v2-specs-top .v2-spec-name { color: #666; width: 45%; position: relative; padding-right: 10px; }
.v2-specs-top .v2-spec-name::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    border-bottom: 1px dotted #ccc;
    z-index: 0;
}
.v2-specs-top .v2-spec-name span { background: #fff; position: relative; z-index: 1; padding-right: 4px; }
.v2-specs-top .v2-spec-val { font-weight: 500; color: #222; background: #fff; position: relative; z-index: 1; }
.v2-specs-top .v2-spec-val a { color: #b3831f; }
.v2-specs-link { font-size: 13px; color: #b3831f; cursor: pointer; text-decoration: underline; margin-top: 5px; display: inline-block; }

/* Buy box */
.v2-buybox {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 18px;
}
.v2-price-block { margin-bottom: 15px; }
.v2-price { font-size: 28px; font-weight: 700; color: #222; }
.v2-price-old { font-size: 16px; color: #999; text-decoration: line-through; margin-left: 10px; }
.v2-price-note { font-size: 12px; color: #888; margin-top: 2px; }

.v2-stock { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 15px; }
.v2-stock.in-stock { color: #2e7d32; }
.v2-stock.out-stock { color: #b3831f; }
.v2-stock i { font-size: 16px; }

/* Discount table */
.v2-discounts { margin-bottom: 15px; }
.v2-discounts table { width: 100%; border-collapse: collapse; font-size: 13px; }
.v2-discounts th { background: #e8f5e9; padding: 6px 10px; text-align: left; font-weight: 600; }
.v2-discounts td { padding: 6px 10px; border-bottom: 1px solid #eee; }

/* Options */
.v2-options { margin-bottom: 15px; }
.v2-options label { font-weight: 600; font-size: 14px; margin-bottom: 5px; display: block; color: #333; }
.v2-options select { width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; background: #fff; }

/* Quantity & buttons */
.v2-qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.v2-qty { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.v2-qty button { width: 36px; height: 38px; border: none; background: #f5f5f5; font-size: 18px; cursor: pointer; color: #333; }
.v2-qty button:hover { background: #e0e0e0; }
.v2-qty input { width: 50px; height: 38px; border: none; border-left: 1px solid #ccc; border-right: 1px solid #ccc; text-align: center; font-size: 15px; }
.v2-btn-cart {
    flex: 1;
    min-width: 140px;
    padding: 10px 20px;
    background: #c9962a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.v2-btn-cart:hover { background: #b3831f; }
.v2-btn-cart i { margin-right: 6px; }

.v2-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-btn-quick {
    flex: 1;
    padding: 10px 15px;
    background: #fff;
    color: #c9962a;
    border: 2px solid #c9962a;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.v2-btn-quick:hover { background: #fbe9e7; }
.v2-btn-request {
    flex: 1;
    padding: 10px 15px;
    background: #fff;
    color: #b3831f;
    border: 2px solid #b3831f;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.v2-btn-request:hover { background: #e3f2fd; }
.v2-btn-request i, .v2-btn-quick i { margin-right: 5px; }

/* USP block */
.v2-usp {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.v2-usp-item {
    flex: 1;
    min-width: 140px;
    background: #e8f5e9;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.v2-usp-item i { font-size: 20px; color: #2e7d32; margin-top: 2px; }
.v2-usp-item .v2-usp-text { font-size: 13px; line-height: 1.4; color: #2e7d32; font-weight: 500; }

/* Delivery block */
.v2-delivery {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 15px;
}
.v2-delivery h4 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: #333; }
.v2-delivery-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: #444; }
.v2-delivery-row i { color: #b3831f; width: 20px; text-align: center; }
.v2-delivery-row strong { color: #222; }

/* Wishlist/Compare */
.v2-actions { display: flex; gap: 15px; margin-top: 12px; }
.v2-actions a { font-size: 13px; color: #666; cursor: pointer; text-decoration: none; }
.v2-actions a:hover { color: #c9962a; }
.v2-actions a i { margin-right: 4px; }

/* ===== SECTIONS with sticky sidebar nav ===== */
.v2-sections-wrap { display: flex; gap: 30px; margin-top: 30px; align-items: flex-start; }
.v2-sidebar-nav {
    width: 240px; min-width: 240px; position: sticky; top: 80px;
    background: #fff; border: 1px solid #e8e8e8; border-radius: 8px;
    padding: 15px 0; flex-shrink: 0;
}
.v2-sidebar-nav a {
    display: block; padding: 10px 20px; font-size: 15px; color: #333;
    text-decoration: none; border-left: 3px solid transparent; transition: all 0.15s;
}
.v2-sidebar-nav a:hover { background: #fafafa; color: #c9962a; }
.v2-sidebar-nav a.active { border-left-color: #c9962a; color: #c9962a; font-weight: 600; background: #f0f4ff; }
.v2-sidebar-extras { margin-top: 15px; padding: 0 10px; }
.v2-sb-form-wrap {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden;
}
.v2-sb-form-header {
    background: linear-gradient(135deg, #c9962a, #b3831f); color: #fff;
    padding: 14px 16px; text-align: center;
}
.v2-sb-form-title { font-size: 13px; opacity: 0.9; }
.v2-sb-form-subtitle { font-size: 15px; font-weight: 700; margin-top: 2px; }
.v2-sb-form { padding: 14px 14px 10px; }
.v2-sb-field { margin-bottom: 8px; }
.v2-sb-field input, .v2-sb-field textarea {
    width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 13px; box-sizing: border-box; font-family: inherit;
}
.v2-sb-field textarea { resize: vertical; min-height: 40px; }
.v2-sb-field input:focus, .v2-sb-field textarea:focus { border-color: #c9962a; outline: none; }
.v2-sb-submit {
    width: 100%; padding: 10px; background: #c9962a; color: #fff; border: none;
    border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.v2-sb-submit:hover { background: #b3831f; }
.v2-sb-submit:disabled { background: #ccc; cursor: not-allowed; }
.v2-sb-agree { font-size: 10px; color: #999; margin-top: 8px; line-height: 1.3; text-align: center; }
.v2-sb-agree a { color: #999; text-decoration: underline; }
.v2-sb-form-success {
    padding: 25px 14px; text-align: center; color: #2e7d32;
}
.v2-sb-form-success i { font-size: 36px; margin-bottom: 8px; }
.v2-sb-form-success div { font-size: 13px; line-height: 1.4; }

.v2-sections-content { flex: 1; min-width: 0; }
.v2-section { margin-bottom: 35px; padding-top: 25px; border-top: 1px solid #e8e8e8; }
.v2-section:first-child { border-top: none; padding-top: 0; }
.v2-section-title { font-size: 20px; font-weight: 700; color: #222; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid #c9962a; display: inline-block; }

@media (max-width: 991px) {
    .v2-sidebar-nav { display: none; }
    .v2-sections-wrap { flex-direction: column; }
}
table.v2-attr-table { width: 100%; }
table.v2-attr-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
table.v2-attr-table tr:nth-child(even) { background: #fafafa; }
table.v2-attr-table .attr-name { color: #666; width: 40%; }
table.v2-attr-table .attr-val { color: #222; font-weight: 500; }
table.v2-attr-table thead td { background: #f5f5f5; font-weight: 700; color: #333; }

/* Description */
.v2-desc { line-height: 1.7; font-size: 14px; color: #444; }
.v2-desc h2, .v2-desc h3 { color: #222; margin-top: 20px; }
.v2-desc ul { padding-left: 20px; }
.v2-desc ul li { margin-bottom: 6px; }
.v2-desc img { max-width: 100%; border-radius: 4px; }

/* === Delivery tab (cable.ru style) === */
.v2-del-methods { display: flex; gap: 0; margin-bottom: 20px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.v2-del-method {
    flex: 1; min-width: 130px; padding: 14px 10px; text-align: center; cursor: pointer;
    background: #f8f8f8; border-right: 1px solid #e0e0e0; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.v2-del-method:last-child { border-right: none; }
.v2-del-method:hover { background: #fff3f3; }
.v2-del-method.active { background: #fff; border: 2px solid #c9962a; border-radius: 8px; position: relative; z-index: 1; }
.v2-del-method .v2-del-icon {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
}
.v2-del-method .v2-del-icon.red { background: #c9962a; }
.v2-del-method .v2-del-icon.gray { background: #bdbdbd; }
.v2-del-method .v2-del-label { font-size: 13px; font-weight: 600; color: #333; line-height: 1.2; }
.v2-del-method.active .v2-del-label { color: #c9962a; }

.v2-del-content { display: none; }
.v2-del-content.active { display: block; }

.v2-tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.v2-tk-card {
    border: 1px solid #e8e8e8; border-radius: 6px; padding: 12px 8px; text-align: center;
    background: #fff; min-height: 60px; display: flex; align-items: center; justify-content: center;
    transition: box-shadow 0.2s;
}
.v2-tk-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.v2-tk-card img { max-width: 110px; max-height: 40px; }
.v2-tk-card .v2-tk-name { font-size: 13px; font-weight: 600; color: #333; }

.v2-del-note { font-size: 13px; color: #666; line-height: 1.6; margin-top: 10px; padding: 12px 15px; background: #f8f9fa; border-radius: 6px; }
.v2-del-note strong { color: #333; }

/* === Payment tab (cable.ru style) === */
.v2-pay-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.v2-pay-tab {
    flex: 1; padding: 14px 18px; text-align: center; cursor: pointer;
    background: #f5f5f5; border: 1px solid #e0e0e0; font-size: 14px; font-weight: 600;
    transition: all 0.2s; color: #555;
}
.v2-pay-tab:first-child { border-radius: 8px 0 0 8px; }
.v2-pay-tab:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.v2-pay-tab.active { background: #fff; color: #c9962a; border-color: #c9962a; position: relative; z-index: 1; }
.v2-pay-tab i { margin-right: 6px; font-size: 16px; }

.v2-pay-content { display: none; }
.v2-pay-content.active { display: block; }

.v2-pay-section { background: #f8f9fa; border-radius: 8px; padding: 20px; margin-bottom: 12px; }
.v2-pay-section h5 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: #333; }
.v2-pay-section p { font-size: 14px; color: #444; line-height: 1.6; margin: 0 0 8px; }
.v2-pay-section ul { padding-left: 18px; margin: 8px 0; font-size: 14px; color: #444; }
.v2-pay-section ul li { margin-bottom: 5px; }

.v2-pay-icons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.v2-pay-icon {
    border: 1px solid #e0e0e0; border-radius: 6px; padding: 8px 14px; background: #fff;
    font-size: 13px; font-weight: 700; color: #333; display: flex; align-items: center; gap: 6px;
    min-height: 40px;
}
.v2-pay-icon i { font-size: 18px; }
.v2-pay-icon.visa { color: #1a1f71; }
.v2-pay-icon.mc { color: #eb001b; }
.v2-pay-icon.mir { color: #0f754e; }
.v2-pay-icon.sbp { color: #5b2d8e; }
.v2-pay-icon.cash { color: #2e7d32; }
.v2-pay-icon.bank { color: #b3831f; }

/* Related products — cable.ru style carousel */
.v2-related { margin-top: 35px; padding-top: 30px; border-top: 1px solid #e8e8e8; position: relative; }
.v2-related h3 { font-size: 22px; font-weight: 700; margin: 0 0 20px; color: #222; }
.v2-related-wrap { position: relative; overflow: hidden; }
.v2-related-track { display: flex; gap: 15px; transition: transform 0.35s ease; }
.v2-related-card {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 8px;
    padding: 16px 14px; min-width: 220px; max-width: 220px; flex-shrink: 0;
    display: flex; flex-direction: column; transition: box-shadow 0.2s;
}
.v2-related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.v2-rc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.v2-rc-sku { font-size: 11px; color: #888; }
.v2-rc-compare { font-size: 16px; color: #bbb; cursor: pointer; }
.v2-rc-compare:hover { color: #c9962a; }
.v2-related-card .v2-rc-img { text-align: center; margin-bottom: 10px; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.v2-related-card .v2-rc-img img { max-width: 100%; max-height: 120px; object-fit: contain; }
.v2-related-card .v2-rc-name { font-size: 13px; line-height: 1.35; margin-bottom: 6px; min-height: 36px; flex-grow: 1; }
.v2-related-card .v2-rc-name a { color: #222; text-decoration: none; }
.v2-related-card .v2-rc-name a:hover { color: #c9962a; }
.v2-rc-rating { font-size: 12px; color: #888; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.v2-rc-rating .fa-star { color: #ffa000; font-size: 11px; }
.v2-rc-rating .fa-star-o { color: #ddd; font-size: 11px; }
.v2-rc-stock { font-size: 12px; color: #2e7d32; margin-bottom: 4px; }
.v2-rc-delivery { font-size: 11px; color: #888; margin-bottom: 10px; }
.v2-rc-price-block { margin-bottom: 10px; }
.v2-related-card .v2-rc-price { font-size: 18px; font-weight: 700; color: #222; }
.v2-related-card .v2-rc-price .v2-rc-unit { font-size: 13px; font-weight: 400; color: #666; }
.v2-related-card .v2-rc-price .v2-rc-vat { display: inline-block; font-size: 10px; color: #fff; background: #2e7d32; border-radius: 3px; padding: 1px 5px; margin-left: 5px; font-weight: 600; vertical-align: middle; }
.v2-related-card .v2-rc-price-old { font-size: 12px; color: #999; text-decoration: line-through; margin-bottom: 2px; }
.v2-related-card .v2-rc-btn {
    display: block; width: 100%; padding: 10px 0; background: #c9962a; color: #fff;
    border: none; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer;
    text-align: center; text-decoration: none; transition: background 0.2s;
}
.v2-related-card .v2-rc-btn:hover { background: #b3831f; color: #fff; }
.v2-related-card .v2-rc-btn i { margin-right: 5px; }

/* Carousel arrows */
.v2-rel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; background: #fff; border: 1px solid #ddd;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; font-size: 16px; color: #333; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.v2-rel-arrow:hover { background: #f5f5f5; border-color: #bbb; }
.v2-rel-arrow.left { left: -18px; }
.v2-rel-arrow.right { right: -18px; }

@media (max-width: 767px) {
    .v2-related-card { min-width: 170px; max-width: 170px; }
    .v2-related-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .v2-rel-arrow { display: none; }
}

/* Request modal */
.v2-modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center; justify-content: center;
}
.v2-modal-overlay.active { display: flex; }
.v2-modal {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
}
.v2-modal h3 { margin: 0 0 15px; font-size: 18px; }
.v2-modal .v2-modal-close { position: absolute; top: 10px; right: 15px; font-size: 22px; cursor: pointer; color: #999; background: none; border: none; }
.v2-modal .form-group { margin-bottom: 12px; }
.v2-modal .form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.v2-modal .form-group input,
.v2-modal .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.v2-modal .form-group textarea { height: 80px; resize: vertical; }
.v2-modal .v2-btn-send { width: 100%; padding: 10px; background: #b3831f; color: #fff; border: none; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; }
.v2-modal .v2-btn-send:hover { background: #0d47a1; }

/* Sticky buy bar */
.v2-sticky-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    padding: 8px 0; display: none;
}
.v2-sticky-bar.visible { display: block; }
.v2-sticky-bar .v2-sb-inner { display: flex; align-items: center; gap: 15px; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.v2-sticky-bar .v2-sb-name { flex: 1; font-size: 14px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sticky-bar .v2-sb-price { font-size: 18px; font-weight: 700; color: #222; white-space: nowrap; }
.v2-sticky-bar .v2-sb-btn { padding: 8px 20px; background: #c9962a; color: #fff; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.v2-sticky-bar .v2-sb-btn:hover { background: #b3831f; }

/* Lightbox */
.v2-lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); z-index: 10000; align-items: center; justify-content: center; }
.v2-lightbox.active { display: flex; }
.v2-lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
.v2-lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 36px; color: #fff; cursor: pointer; z-index: 10001; }
.v2-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 36px; color: #fff; cursor: pointer; padding: 10px; z-index: 10001; }
.v2-lightbox-nav.prev { left: 20px; }
.v2-lightbox-nav.next { right: 20px; }

/* Guarantee section */
.v2-guarantee { background: #f0f7f0; border: 1px solid #c8e6c9; border-radius: 8px; padding: 20px; margin-top: 20px; }
.v2-guarantee h4 { font-size: 16px; font-weight: 700; color: #2e7d32; margin: 0 0 10px; }
.v2-guarantee h4 i { margin-right: 6px; }
.v2-guarantee p { font-size: 14px; color: #444; line-height: 1.6; margin: 0 0 8px; }
.v2-guarantee ul { padding-left: 18px; margin: 8px 0 0; font-size: 14px; color: #444; }
.v2-guarantee ul li { margin-bottom: 4px; }

/* Share buttons */
.v2-share { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.v2-share span { font-size: 13px; color: #888; }
.v2-share a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f0f0f0; color: #555; font-size: 14px; text-decoration: none; transition: all 0.2s; }
.v2-share a:hover { background: #c9962a; color: #fff; }

/* Stock indicator */
.v2-stock-qty { font-size: 12px; color: #e65100; margin-top: -10px; margin-bottom: 10px; }
.v2-stock-qty i { margin-right: 4px; }

/* Calculator */
.v2-calc { background: #f8f9fa; border-radius: 6px; padding: 10px 14px; margin-top: 10px; font-size: 13px; color: #444; }
.v2-calc strong { color: #222; }

/* Categories tags */
.v2-categories { margin-top: 15px; }
.v2-categories span { font-size: 13px; color: #888; }
.v2-cat-tag { display: inline-block; padding: 4px 10px; background: #f0f0f0; border-radius: 12px; font-size: 12px; color: #555; text-decoration: none; margin: 3px 2px; transition: all 0.2s; }
.v2-cat-tag:hover { background: #c9962a; color: #fff; }

/* Company rating */
.v2-company-rating { background: #f8f9fa; border-radius: 8px; padding: 18px; margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.v2-company-rating .v2-cr-score { font-size: 32px; font-weight: 700; color: #222; }
.v2-company-rating .v2-cr-stars { color: #ffa000; font-size: 16px; }
.v2-company-rating .v2-cr-text { font-size: 13px; color: #888; }

/* Documents */
.v2-docs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.v2-doc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; color: #555; text-decoration: none; background: #fff; transition: all 0.2s; cursor: pointer; }
.v2-doc-btn:hover { border-color: #c9962a; color: #c9962a; }
.v2-doc-btn i { font-size: 16px; }

@media (max-width: 767px) {
    .v2-info h1 { font-size: 18px; }
    .v2-price { font-size: 22px; }
    .v2-btn-row { flex-direction: column; }
    .v2-usp { flex-direction: column; }
    .v2-sticky-bar .v2-sb-name { display: none; }
    .v2-company-rating { flex-direction: column; text-align: center; }
}
#ff_cart .btn-primary{background-color:#c9962a !important;border-color:#c9962a !important}#ff_cart .btn-primary:hover{background-color:#b3831f !important;border-color:#b3831f !important}
/* ===== pretty breadcrumbs (v2 pages) ===== */
.container.v2-product .breadcrumb, .container.v2cat .breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center;
  background: #f7f7f8; border: 1px solid #ececec; border-radius: 10px;
  padding: 9px 16px; margin: 12px 0 18px; font-size: 13px; list-style: none;
}
.container.v2-product .breadcrumb .breadcrumb-item, .container.v2cat .breadcrumb .breadcrumb-item {
  display: inline-flex; align-items: center; padding: 0; float: none;
}
.container.v2-product .breadcrumb .breadcrumb-item:not(:last-child)::after,
.container.v2cat .breadcrumb .breadcrumb-item:not(:last-child)::after {
  content: "\203A"; color: #c4c4c4; margin: 0 10px; font-size: 15px; line-height: 1;
}
.container.v2-product .breadcrumb .breadcrumb-item a, .container.v2cat .breadcrumb .breadcrumb-item a {
  color: #666; text-decoration: none; transition: color .15s;
  display: inline-flex; align-items: center;
}
.container.v2-product .breadcrumb .breadcrumb-item a:hover, .container.v2cat .breadcrumb .breadcrumb-item a:hover { color: #c9962a; }
.container.v2-product .breadcrumb .breadcrumb-item a svg, .container.v2cat .breadcrumb .breadcrumb-item a svg { fill: currentColor; }
.container.v2-product .breadcrumb .breadcrumb-item.active, .container.v2cat .breadcrumb .breadcrumb-item.active {
  color: #1a1a1a; font-weight: 600;
  max-width: 480px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block;
}
@media (max-width: 767px) {
  .container.v2-product .breadcrumb, .container.v2cat .breadcrumb { padding: 8px 12px; font-size: 12.5px; }
  .container.v2-product .breadcrumb .breadcrumb-item.active, .container.v2cat .breadcrumb .breadcrumb-item.active { max-width: 55vw; }
}
/* ===== mobile: floating bottom buy bar ===== */
@media (max-width: 767px) {
  .v2-sticky-bar {
    display: block;                 /* always visible on mobile */
    top: auto; bottom: 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.14);
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
  }
  .v2-sticky-bar .v2-sb-inner { gap: 12px; }
  .v2-sticky-bar .v2-sb-price { font-size: 19px; }
  .v2-sticky-bar .v2-sb-btn {
    flex: 1; padding: 13px 16px; font-size: 15px; font-weight: 800;
    border-radius: 10px;
  }
  /* page content must not hide behind the bar */
  .container.v2-product { padding-bottom: 84px; }
}
