/* ============ BIJUTERIA FILIPE — PAGINA PRODUS ============ */
.fm-breadcrumb { padding: 14px 0; font-size: 13px; color: #888; border-bottom: 1px solid #efefef; }
.fm-breadcrumb a { color: #555; text-decoration: none; }
.fm-breadcrumb a:hover { color: #1c1713; }

/* Galerie — fără rame, doar imaginea */
.fm-gallery { position: sticky; top: 20px; }
.fm-gallery-main { background: #fff; overflow: hidden; position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.fm-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s ease; }
.fm-gallery-main.zoomed img { transform: scale(1.6); }
.fm-gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fm-gallery-thumb { width: calc(25% - 8px); aspect-ratio: 1/1; background: #fff; border: 1px solid transparent; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 6px; transition: border-color .18s; }
.fm-gallery-thumb:hover { border-color: #1c1713; }
.fm-gallery-thumb.active { border-color: #1c1713; }
.fm-gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fm-gallery-ar-badge { position: absolute; top: 14px; right: 14px; background: #1c1713; color: #fff; font-size: 11px; letter-spacing: 0.1em; padding: 6px 12px; font-weight: 500; z-index: 2; cursor: pointer; border: none; text-transform: uppercase; }
.fm-gallery-ar-badge:hover { background: #4a4239; color: #fff; }

.fm-pd-cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #666; margin-bottom: 8px; display: block; }
.fm-pd-title { font-size: 32px; font-weight: 300; line-height: 1.25; margin-bottom: 12px; color: #1c1713; }
.fm-pd-rating { margin-bottom: 14px; font-size: 13px; color: #666; }
.fm-pd-rating .stars { color: #1c1713; margin-right: 6px; letter-spacing: 2px; }
.fm-pd-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #efefef; flex-wrap: wrap; }
.fm-pd-price { font-size: 30px; font-weight: 500; color: #1c1713; }
.fm-pd-desc { font-size: 15px; line-height: 1.7; color: #555; margin-bottom: 22px; }
.fm-pd-desc p { margin-bottom: 10px; }
.fm-pd-meta { font-size: 13px; color: #666; margin-bottom: 18px; }
.fm-pd-meta strong { color: #1c1713; font-weight: 500; }

.fm-pd-size-row { margin-bottom: 22px; }
.fm-pd-size-label { font-size: 13px; font-weight: 500; color: #1c1713; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.fm-pd-size-label a { color: #1c1713; text-decoration: underline; font-weight: 400; font-size: 12px; }
.fm-pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-pd-size { min-width: 48px; padding: 10px 14px; border: 1px solid #ddd; background: #fff; border-radius: 2px; font-size: 13px; cursor: pointer; transition: all .18s; color: #1c1713; }
.fm-pd-size:hover { border-color: #1c1713; }
.fm-pd-size.selected { background: #1c1713; color: #fff; border-color: #1c1713; }

.fm-pd-pack { margin-bottom: 18px; }
.fm-pd-pack-label { font-size: 13px; font-weight: 500; color: #1c1713; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.fm-pd-pack-options { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-pack-opt { flex: 1 1 calc(33.333% - 7px); min-width: 130px; cursor: pointer; }
.fm-pack-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fm-pack-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #ddd; background: #fff; transition: all .18s; text-align: center; }
.fm-pack-opt:hover .fm-pack-card { border-color: #1c1713; }
.fm-pack-opt input:checked + .fm-pack-card { border-color: #1c1713; background: #1c1713; color: #fff; }
.fm-pack-name { font-size: 13px; font-weight: 500; }
.fm-pack-price { font-size: 12px; color: #888; }
.fm-pack-opt input:checked + .fm-pack-card .fm-pack-price { color: #d4b87a; }
.fm-pd-pack-error { display: none; color: #c0392b; font-size: 12px; margin-top: 8px; }
.fm-pd-pack.is-error .fm-pd-pack-error { display: block; }
.fm-pd-pack.is-error .fm-pack-card { border-color: #c0392b; }
.fm-btn-primary[disabled], .fm-btn-buy[disabled] { background: #cfcbc4; color: #fff; cursor: not-allowed; }
.fm-btn-primary[disabled]:hover, .fm-btn-buy[disabled]:hover { background: #cfcbc4; }

.fm-pd-qty-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; align-items: stretch; }
.fm-pd-qty { display: inline-flex; border: 1px solid #ddd; overflow: hidden; }
.fm-pd-qty button { background: #fff; border: none; width: 44px; height: 50px; font-size: 18px; cursor: pointer; color: #666; }
.fm-pd-qty button:hover { background: #f5f5f5; color: #1c1713; }
.fm-pd-qty input { width: 56px; border: none; text-align: center; font-size: 15px; font-weight: 500; }

/* Butoane — toate negre cu hover mai deschis */
.fm-btn-primary { background: #1c1713; color: #fff; border: none; padding: 14px 30px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .2s; flex: 1; min-width: 180px; }
.fm-btn-primary:hover { background: #4a4239; color: #fff; }
.fm-btn-buy { background: #1c1713; color: #fff; border: none; padding: 14px 30px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .2s; width: 100%; margin-bottom: 18px; }
.fm-btn-buy:hover { background: #4a4239; color: #fff; }
.fm-btn-fav { background: #fff; border: 1px solid #ddd; width: 50px; height: 50px; cursor: pointer; color: #666; transition: all .18s; display: inline-flex; align-items: center; justify-content: center; }
.fm-btn-fav:hover { border-color: #1c1713; color: #1c1713; }
.fm-btn-fav.active { background: #1c1713; color: #fff; border-color: #1c1713; }

.fm-btn-ar-pd { background: #1c1713; color: #fff; border: none; padding: 14px 20px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; transition: background .2s; }
.fm-btn-ar-pd:hover { background: #4a4239; color: #fff; }
.fm-btn-ar-pd[disabled] { background: #ececec; color: #aaa; cursor: not-allowed; }
.fm-btn-ar-pd i { color: #fff; }
.fm-btn-ar-pd[disabled] i { color: #aaa; }

.fm-pd-share { padding-top: 16px; border-top: 1px solid #efefef; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fm-pd-share span { font-size: 12px; color: #888; letter-spacing: 0.08em; text-transform: uppercase; }
.fm-pd-share a { width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; color: #666; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all .18s; }
.fm-pd-share a:hover { background: #1c1713; color: #fff; }

.fm-tabs { margin-top: 60px; border-bottom: 1px solid #efefef; display: flex; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.fm-tab { padding: 14px 0; cursor: pointer; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #888; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s; font-weight: 500; }
.fm-tab:hover { color: #1c1713; }
.fm-tab.active { color: #1c1713; border-bottom-color: #1c1713; }
.fm-tab-content { display: none; animation: fmFade .3s; }
.fm-tab-content.active { display: block; }
@keyframes fmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fm-tab-content p { margin-bottom: 12px; line-height: 1.75; }
.fm-tab-content ul, .fm-tab-content ol { margin: 10px 0 16px 22px; }
.fm-tab-content li { margin-bottom: 6px; line-height: 1.6; }

.fm-specs-table { width: 100%; max-width: 520px; }
.fm-specs-table td { padding: 10px 0; border-bottom: 1px solid #efefef; font-size: 14px; }
.fm-specs-table td:first-child { color: #888; }
.fm-specs-table td:last-child { text-align: right; font-weight: 500; color: #1c1713; }

/* AR toolbar */
.fm-ar-toolbar { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.fm-ar-tool-btn { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.92); border: none; color: #1c1713; font-size: 17px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.35); transition: all .2s; }
.fm-ar-tool-btn:hover { background: #fff; color: #4a4239; transform: translateY(-2px); }
.fm-ar-tool-btn.capture { width: 60px; height: 60px; font-size: 22px; background: #fff; }
.fm-ar-tool-btn.capture:hover { background: #1c1713; color: #fff; }
.fm-ar-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 20; transition: opacity .4s; }
.fm-ar-flash.on { opacity: 0.9; transition: opacity .1s; }

/* Produse similare — stil productColumn ca pe prima pagină, fundal alb */
.fm-related { padding: 60px 0 20px; }
.fm-related h3 { font-weight: 300; letter-spacing: 0.06em; color: #1c1713; }
.fm-related .productColumn { background: #fff; text-align: center; position: relative; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.fm-related .productColumn .imgHolder { background: #fff; position: relative; overflow: hidden; margin-bottom: 12px; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.fm-related .productColumn .imgHolder img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s ease; }
.fm-related .productColumn:hover .imgHolder img { transform: scale(1.04); }
.fm-related .productColumn .pcTitle { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #888; display: block; margin-bottom: 4px; font-weight: 500; }
.fm-related .productColumn .pcHeading { font-size: 15px; font-weight: 300; margin-bottom: 4px; color: #1c1713; line-height: 1.3; min-height: 40px; }
.fm-related .productColumn .pcHeading a { color: #1c1713; text-decoration: none; }
.fm-related .productColumn .pcHeading a:hover { color: #4a4239; }
.fm-related .productColumn .pcprice { font-size: 15px; font-weight: 500; color: #1c1713; margin-bottom: 0; }

.fm-ploading, .fm-pnotfound { text-align: center; padding: 80px 20px; color: #999; }
.fm-pnotfound h2 { color: #1c1713; font-weight: 300; margin-bottom: 10px; }

@media (max-width: 767.98px) {
    .fm-pd-title { font-size: 24px; }
    .fm-pd-price { font-size: 24px; }
    .fm-gallery { position: static; }
}

/* ====== AR — chenar mereu portret 9:16, rotim stream-ul landscape ====== */
#arFrame.fm-ar-rotate #arVideo,
#arFrame.fm-ar-rotate #arCanvas { width: 177.7778% !important; height: auto !important; aspect-ratio: 16 / 9 !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) rotate(-90deg) !important; object-fit: cover !important; }
#arFrame.fm-ar-rotate.fm-ar-mirror #arVideo,
#arFrame.fm-ar-rotate.fm-ar-mirror #arCanvas { transform: translate(-50%, -50%) rotate(-90deg) scaleX(-1) !important; }
#arFrame.fm-ar-mirror:not(.fm-ar-rotate) #arVideo,
#arFrame.fm-ar-mirror:not(.fm-ar-rotate) #arCanvas { transform: scaleX(-1) !important; }

