/* Sales, orders and commerce (modules/51-commerce). Prefix: com- */

/* Product pictures drawn without images: a tinted tile with a monogram */
.com-pic { --c: #1a7fe0; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; color: #fff; font-weight: 800; letter-spacing: .04em;
    background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #0b1f3a) 100%); position: relative; overflow: hidden; }
.com-pic span { font-size: clamp(22px, 4vw, 34px); text-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.com-pic i { position: absolute; right: 10px; bottom: 8px; font-size: 22px; opacity: .55; }
.com-pic.sm { width: 44px; height: 44px; aspect-ratio: auto; border-radius: 8px; flex: 0 0 44px; }
.com-pic.sm span { font-size: 15px; }
.com-pic.sm i { display: none; }
.com-pic.blue { --c: #1a7fe0; } .com-pic.teal { --c: #12a0a8; } .com-pic.purple { --c: #7048c8; } .com-pic.green { --c: #12a079; }
.com-pic.amber { --c: #d99a06; } .com-pic.navy { --c: #1d3c6e; } .com-pic.coral { --c: #e8632a; } .com-pic.slate { --c: #5d6f86; }

/* Product grid (portal shop and storefront) */
.com-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.com-card { background: var(--ct-card, #fff); border: 1px solid var(--ct-line, #e3e9f1); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.com-card h4 { margin: 2px 0 0; font-size: 15px; line-height: 1.3; }
.com-card h4 a { color: inherit; text-decoration: none; }
.com-card .meta { color: #6b7a90; font-size: 12.5px; }
.com-card .price { font-size: 18px; font-weight: 800; }
.com-card .price s { font-size: 13px; color: #8a9bb0; font-weight: 500; margin-left: 6px; }
.com-card .row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.com-card form { display: flex; gap: 6px; align-items: center; }
.com-card input[type=number] { width: 64px; min-height: 40px; }
.com-stock { font-size: 12px; font-weight: 600; }
.com-stock.ok { color: #12805f; } .com-stock.low { color: #b7790a; } .com-stock.out { color: #c0392b; }
.com-heart { border: 0; background: none; cursor: pointer; font-size: 18px; color: #c0392b; min-width: 40px; min-height: 40px; }

/* Shop layout: filters beside the products */
.com-shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.com-filters { display: flex; flex-direction: column; gap: 12px; }
.com-filters h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6b7a90; }
.com-filters a.cat { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: inherit; text-decoration: none; min-height: 40px; align-items: center; }
.com-filters a.cat.on, .com-filters a.cat:hover { background: rgba(26, 127, 224, .1); color: #0b5cad; font-weight: 600; }
@media (max-width: 860px) { .com-shop { grid-template-columns: minmax(0, 1fr); } }

/* Product page */
.com-product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.com-product .com-pic { aspect-ratio: 1 / 1; }
.com-product .com-pic span { font-size: 64px; }
.com-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.com-variants a { border: 1px solid #cdd8e6; border-radius: 10px; padding: 8px 12px; text-decoration: none; color: inherit; min-height: 40px; }
.com-variants a.on { border-color: #1a7fe0; background: rgba(26, 127, 224, .08); font-weight: 600; }
.com-variants a small { display: block; color: #6b7a90; font-weight: 500; }
@media (max-width: 760px) { .com-product { grid-template-columns: minmax(0, 1fr); } }

/* Cart and totals */
.com-totals { width: 100%; max-width: 380px; margin-left: auto; }
.com-totals td { padding: 5px 0; }
.com-totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.com-totals tr.big td { font-size: 18px; font-weight: 800; border-top: 1px solid #dfe6ef; padding-top: 9px; }
.com-qty { width: 76px; min-height: 40px; }
.com-note { font-size: 12.5px; color: #6b7a90; }

/* Order tracking steps on the customer's order page */
.com-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 2px; }
.com-track div { text-align: center; font-size: 12.5px; color: #8a9bb0; position: relative; padding-top: 30px; }
.com-track div:before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #dfe6ef; border: 3px solid #fff; box-shadow: 0 0 0 1px #cdd8e6; }
.com-track div.done { color: #12805f; font-weight: 600; } .com-track div.done:before { background: #12a079; box-shadow: 0 0 0 1px #12a079; }
.com-track div.on { color: #0b5cad; font-weight: 700; } .com-track div.on:before { background: #1a7fe0; box-shadow: 0 0 0 4px rgba(26, 127, 224, .2); }
@media (max-width: 560px) { .com-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; } }

/* Order board */
.com-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; position: relative; padding-bottom: 6px; }
.com-col { background: #f3f6fa; border-radius: 12px; padding: 10px; min-width: 0; }
.com-col h4 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; }
.com-col .card { display: block; background: #fff; border: 1px solid #e3e9f1; border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.com-col .card:hover { border-color: #1a7fe0; }
.com-col .card b { display: block; }
.com-col .card small { color: #6b7a90; display: block; }

/* Trade counter */
.com-pos { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.com-pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.com-pos-item { border: 1px solid #e3e9f1; border-radius: 10px; padding: 9px; display: flex; flex-direction: column; gap: 6px; background: #fff; min-width: 0; }
.com-pos-item b { font-size: 13px; line-height: 1.25; }
.com-pos-item .num { font-weight: 700; }
.com-pos-item input { width: 100%; min-height: 40px; }
@media (max-width: 900px) { .com-pos { grid-template-columns: minmax(0, 1fr); } }
.com-receipt { max-width: 380px; margin: 0 auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #fff; padding: 18px; border: 1px dashed #cdd8e6; }
.com-receipt table { width: 100%; }
.com-receipt td:last-child { text-align: right; }
@media print { .ct-sidebar, .ct-top, .ct-modbar, .ct-toolbar, .tr-help, .com-noprint { display: none !important; } .com-receipt { border: 0; } }

/* Storefront */
.com-store { max-width: 1180px; margin: 0 auto; padding: 18px 16px 70px; }
.com-storebar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.com-storebar form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 560px; }
.com-storebar input[type=search] { flex: 1; min-height: 42px; }
.com-storebar .cur a { padding: 6px 9px; border-radius: 8px; text-decoration: none; color: inherit; min-height: 40px; display: inline-flex; align-items: center; }
.com-storebar .cur a.on { background: #0b5cad; color: #fff; }
.com-banner { border-radius: 14px; padding: 18px 20px; color: #fff; background: linear-gradient(120deg, var(--brand-navy, #0b1f3a), var(--brand-primary, #0b5cad)); margin-bottom: 14px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.com-banner b { font-size: 18px; }
.com-banner code { background: rgba(255, 255, 255, .18); padding: 3px 8px; border-radius: 6px; color: #fff; }
.com-cartlink { position: relative; }
.com-cartlink em { position: absolute; top: -6px; right: -8px; background: #e8632a; color: #fff; font-style: normal; font-size: 11px; border-radius: 10px; padding: 1px 6px; }
.com-mini td { padding-top: 6px; padding-bottom: 6px; }
.com-cmp td.changed, .com-cmp td.added { background: rgba(217, 154, 6, .1); }
.com-cmp td.removed { background: rgba(192, 57, 43, .08); text-decoration: line-through; }
.com-sig { border: 1px solid #cdd8e6; border-radius: 10px; padding: 12px; background: #f8fafc; }


/* Pinnacle Premier Bank: black navigation with restrained gold selection accents. */
.ct-top,header.top,.ct-modbar,.topnav,.ct-navtitle,.navtitle,.navbar.bg-primary,.nav-menu.bg-primary,.sidebar.bg-primary{background:#000!important;background-image:none!important;border-color:#252525!important;color:#fff!important}
.ct-top-title,.ct-top-title b,.ct-session,.ct-modbar a,.topnav a,.topnav button,.ct-navtitle span,.navtitle span{color:#fff!important}
.ct-modbar a:hover,.ct-modbar a.on,.topnav a:hover,.topnav a.on,.topnav button:hover,.topnav button.on{background:#242424!important;color:#fff!important}
.ct-sidebar,.shell>.sidebar{background:#f2f2f2!important;border-color:#d3d3d3!important}
.ct-navitem,.navitem{color:#171717!important;background:linear-gradient(#fff,#f3f3f3)!important;border-color:#d0d0d0!important}
.ct-navitem i,.navitem svg{color:#171717!important}
.ct-navitem:hover,.ct-navitem.on,.navitem:hover,.navitem.on,.nav-link.active,.sidebar .nav-link.active{color:#fff!important;background:#111!important;box-shadow:inset 3px 0 0 #c8a34a!important}
.ct-navitem:hover i,.ct-navitem.on i,.navitem:hover svg,.navitem.on svg{color:#e3c375!important}
.ct-navtitle span,.navtitle span{background:#292929!important}
.ct-topbtn,.ct-command,.ct-command input,.ct-top .ct-avatar{background:#171717!important;border-color:#454545!important;color:#fff!important}
.ct-menu .drop a:hover,.ct-menu .drop button:hover{background:#111!important;color:#fff!important}
