/* Product card: quiet surfaces, clear navigation and a single prominent save action. */
#product-card { --card-blue:#2563eb; --card-ink:#152c40; --card-muted:#63798b; --card-line:#dfe8f0; }
#product-card .product-page-head { align-items:center; gap:20px; margin:0 0 22px; }
#product-card .product-page-head h2 { color:#142c40; letter-spacing:-.035em; font-weight:750; }
#product-card .product-page-head p { color:var(--card-muted); }
#product-card #productWorkspaceBack { min-height:42px; border:1px solid #d9e5f0; border-radius:11px; color:#245381; background:#fff; }
#product-card #productWorkspaceBack:hover { background:#edf5ff; border-color:#b8d3f4; }
#product-card .product-hero { grid-template-columns:112px minmax(0,1fr); gap:18px; margin-bottom:20px; padding:18px; border:1px solid var(--card-line); border-radius:16px; background:linear-gradient(115deg,#fff 50%,#f5f9ff); box-shadow:0 6px 22px #173c5b0a; }
#product-card .product-hero-photo { width:112px; height:112px; border-radius:12px; background:#edf4fb; }
#product-card .product-hero-kpis { margin-top:12px; gap:8px; }
#product-card .product-hero-kpis span { background:#fff; border:1px solid #e7eef5; }
#product-card .product-badges span { background:#eaf3ff; color:#245a9d; }
#product-card .product-editor-tabbed { grid-template-columns:220px minmax(0,1fr); gap:20px; }
#product-card .product-card-sidebar { padding:16px 10px; border:1px solid var(--card-line); border-radius:16px; background:#fff; box-shadow:0 6px 22px #173c5b08; }
#product-card .product-card-sidebar .product-editor-caption { color:#8494a3; letter-spacing:.09em; }
#product-card .product-card-sidebar .product-tabs { gap:5px; }
#product-card .product-card-sidebar .product-tabs button { grid-template-columns:34px minmax(0,1fr); grid-template-rows:auto auto; column-gap:10px; row-gap:2px; align-items:center; min-height:62px; padding:10px; border-radius:11px; transition:background .16s,border-color .16s,box-shadow .16s; }
#product-card .product-card-sidebar .product-tabs button::before { content:''; grid-column:1; grid-row:1 / 3; width:34px; height:34px; border-radius:10px; background-color:#e9f1fb; background-position:center; background-repeat:no-repeat; background-size:19px; }
#product-card .product-card-sidebar .product-tabs button b { grid-column:2; grid-row:1; align-self:end; color:inherit; }
#product-card .product-card-sidebar .product-tabs button small { grid-column:2; grid-row:2; align-self:start; }
#product-card .product-card-sidebar .product-tabs button:hover { background:#f4f8fe; }
#product-card .product-card-sidebar .product-tabs button.active { color:#164fb5; background:#eaf2ff; border-color:#cce0ff; box-shadow:inset 3px 0 #2563eb!important; }
#product-card .product-card-sidebar .product-tabs button.active::before { background-color:#d5e6ff; }
#product-card .product-tabs [data-product-workspace-tab="main"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h10l4 4v14H5z'/%3E%3Cpath d='M15 3v5h4M8 12h8M8 16h8'/%3E%3C/svg%3E"); }
#product-card .product-tabs [data-product-workspace-tab="media"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8' cy='9' r='1.5'/%3E%3Cpath d='m4 17 5-5 3 3 3-3 5 5'/%3E%3C/svg%3E"); }
#product-card .product-tabs [data-product-workspace-tab="prices"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h5a4 4 0 0 1 0 8H5m2-8v18M5 15h10'/%3E%3C/svg%3E"); }
#product-card .product-tabs [data-product-workspace-tab="stock"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m3 8 9-5 9 5-9 5-9-5Zm0 0v9l9 4 9-4V8m-9 5v8'/%3E%3C/svg%3E"); }
#product-card .product-tabs [data-product-workspace-tab="compare"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 10v10h16V10M3 10l2-6h14l2 6M8 20v-6h8v6M3 10c0 2 3 3 4.5 1 1.5 2 3 2 4.5 0 1.5 2 3 2 4.5 0 1.5 2 4.5 1 4.5-1'/%3E%3C/svg%3E"); }
#product-card .product-tabs [data-product-workspace-tab="history"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8m0-5v5h5m4-1v5l3 2'/%3E%3C/svg%3E"); }
#product-card .product-tabs [data-product-workspace-tab="kit"]::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
#product-card .product-card-subtabs { gap:8px; padding:0 0 12px; border-color:#e3ebf2; }
#product-card .product-card-subtabs button { border-radius:9px; background:#fff; border-color:#dfe8f2; color:#526c80; box-shadow:none; }
#product-card .product-card-subtabs button:hover { color:#1e58b2; background:#f1f6ff; }
#product-card .product-card-subtabs button.active { color:#1854bd; background:#eaf2ff; border-color:#c9dfff; }
#product-card .product-editor-content>.product-tab-panel { padding:20px; border:1px solid var(--card-line); border-radius:16px; background:#fff; box-shadow:0 6px 24px #173c5b08; }
#product-card .product-editor-content>.product-tab-panel>.section-heading { margin-bottom:20px; }
#product-card .product-editor-content>.product-tab-panel>.section-heading h3 { color:var(--card-ink); letter-spacing:-.025em; }
#product-card .product-editor-group { overflow:hidden; border:1px solid #e1eaf2; border-radius:12px; background:#fff; box-shadow:none; }
#product-card .product-editor-group>summary { color:#1c3a51; }
#product-card .product-editor-group>summary:hover { background:#f7faff; }
#product-card .product-editor-content input:not([type=checkbox]):not([type=radio]),#product-card .product-editor-content select,#product-card .product-editor-content textarea { border-radius:9px; border-color:#d6e2ed; background-color:#fff; }
#product-card .product-editor-content input:focus,#product-card .product-editor-content select:focus,#product-card .product-editor-content textarea:focus { border-color:#6ba2ef; box-shadow:0 0 0 3px #2563eb1b; }
#product-card .product-initial-stock-shortcut { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-top:16px; padding:15px 16px; border:1px solid #d3e5ff; border-radius:12px; background:#f1f7ff; color:#365a7e; }
#product-card .product-initial-stock-shortcut button { border:1px solid #a9cdfd; border-radius:9px; background:#fff; color:#1556c2; font-weight:700; }
#product-card #productInitialStockEditor,#product-card #productCardStockEditor { padding:16px; border:1px solid #cfe2fb; border-radius:12px; background:#f4f8ff; }
#product-card #productInitialStockEditor h4 { color:#183b61; }
#product-card #productMarketplaceGroups { margin-top:20px; border:1px solid #e1eaf2; border-radius:12px; box-shadow:none; }
#product-card .product-editor-footer { border:1px solid #dbe7f2; border-radius:14px; background:#fff; box-shadow:0 8px 30px #173c5b12; }
#product-card .product-editor-footer #productWorkspaceSave { border-radius:10px; background:#2563eb; border-color:#2563eb; color:#fff; box-shadow:0 5px 12px #2563eb2b; }
#product-card .product-editor-footer #productWorkspaceSave:hover:not(:disabled) { background:#1d4ed8; }
#product-card .product-editor-footer #productEditorSaveDraft { border:1px solid #cdddec; border-radius:10px; color:#245381; background:#fff; }
#product-card button:focus-visible,#product-card summary:focus-visible { outline:3px solid #81aff8; outline-offset:2px; }
@media(max-width:860px) {
 #product-card .product-editor-tabbed { grid-template-columns:minmax(0,1fr); gap:14px; }
 #product-card .product-card-sidebar { padding:8px; border-radius:14px; }
 #product-card .product-card-sidebar .product-editor-caption { display:none; }
 #product-card .product-card-sidebar .product-tabs { gap:5px; }
 #product-card .product-card-sidebar .product-tabs button { display:inline-flex; align-items:center; gap:8px; width:auto; min-height:46px; padding:6px 10px; }
 #product-card .product-card-sidebar .product-tabs button::before { display:block; width:30px; height:30px; flex:0 0 30px; border-radius:9px; background-size:17px; }
 #product-card .product-card-sidebar .product-tabs button b { align-self:center; }
 #product-card .product-card-sidebar .product-tabs button.active { box-shadow:inset 0 -2px #2563eb!important; }
}
@media(max-width:680px) {
 #product-card .product-page-head { grid-template-columns:minmax(0,1fr); gap:10px; margin-bottom:16px; }
 #product-card #productWorkspaceBack { width:max-content; max-width:100%; min-height:40px; }
 #product-card .product-hero { grid-template-columns:76px minmax(0,1fr); gap:12px; padding:14px; }
 #product-card .product-hero-photo { width:76px; height:76px; }
 #product-card .product-hero-kpis { grid-column:1 / -1; }
 #product-card .product-editor-content>.product-tab-panel { padding:16px; }
 #product-card .product-editor-footer { gap:8px; padding:10px; }
 #product-card .product-editor-footer>div { grid-template-columns:1fr 1fr; }
 #product-card .product-initial-stock-shortcut button { width:100%; }
}

/* A single navigation row; operational subsections use one labelled selector. */
#product-card .product-editor-tabbed { display:block; }
#product-card .product-card-navigation { display:flex; gap:24px; padding:0; margin:0 0 20px; border-bottom:1px solid var(--card-line); }
#product-card .product-card-navigation button { min-height:44px; padding:10px 0; margin:0; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--card-muted); box-shadow:none; }
#product-card .product-card-navigation button.active { border-bottom-color:var(--card-blue); color:var(--card-blue); background:transparent; box-shadow:none!important; }
#product-card .product-card-navigation button:hover { color:var(--card-blue); background:transparent; }
#product-card .product-card-navigation button::before { display:none; }
#product-card .product-card-mobile-navigation { display:none; }
#product-card .product-card-subtabs { justify-content:flex-end; margin:0 0 14px; padding:0; border:0; overflow:visible; }
#product-card .product-card-subtabs label { display:flex; align-items:center; gap:10px; margin:0; font-size:12px; color:var(--card-muted); }
#product-card .product-card-subtabs select { width:auto; min-width:190px; max-width:100%; margin:0; font-size:13px; }
#product-card .product-editor-primary-fields { border:0; border-radius:0; margin:0; overflow:visible; }
#product-card .product-editor-primary-fields>summary { display:none; }
#product-card .product-editor-primary-fields>.product-editor-group-body { padding:0; }
#product-card .product-editor-primary-fields+.product-editor-primary-fields { margin-top:18px; }
#product-card .product-barcode-actions { margin-top:4px; }
#product-card .product-barcode-actions>summary { width:max-content; max-width:100%; padding:6px 0; color:#245381; font-size:12px; cursor:pointer; }
#product-card .product-barcode-actions>div { display:flex; flex-wrap:wrap; gap:8px; padding:6px 0; }
#product-card .product-barcode-actions button { width:auto; margin:0; }
#product-card .product-editor-footer>div { display:flex; flex-wrap:nowrap; align-items:center; }
#product-card .product-editor-draft-actions { position:relative; }
#product-card .product-editor-draft-actions>summary { padding:10px 12px; color:#475569; font-size:13px; cursor:pointer; white-space:nowrap; }
#product-card .product-editor-draft-actions>div { position:absolute; bottom:100%; right:0; min-width:220px; padding:8px; background:#fff; border:1px solid var(--card-line); border-radius:10px; box-shadow:0 5px 22px #173c5b1a; }
#product-card .product-editor-footer .product-editor-draft-actions button { width:100%; box-shadow:none; }
@media(max-width:680px) {
 #product-card .product-card-navigation { display:none; }
 #product-card .product-card-mobile-navigation { display:grid; gap:5px; margin:0 0 14px; font-size:12px; color:var(--card-muted); }
 #product-card .product-card-mobile-navigation select { margin:0; }
 #product-card .product-card-subtabs { justify-content:stretch; }
 #product-card .product-card-subtabs label { width:100%; justify-content:space-between; }
 #product-card .product-card-subtabs select { min-width:0; width:calc(100% - 70px); }
 #product-card .product-editor-footer>div { justify-content:space-between; }
 #product-card .product-editor-footer #productWorkspaceSave { width:auto; flex:1; }
 #product-card .product-editor-draft-actions>div { left:0; right:auto; }
}
