/* ===========================
    Global Variables
   =========================== */
:root {
    --background: #1C1526;
    --surface: #241B33;
    --text: #b0b0b0;
    --border: #444;
    --button: #7ed957;
    --button-hover: #007bff;
    --button-text: black;

    --accent: #007bff;
    --danger: red;
    --gray-1: #ccc;
    --gray-2: #ddd;
    --black: black;

    --radius: 10px;
    --font-size: 16px;
    --font-family: "Roboto", system-ui, sans-serif;
}

/* ===========================
    Utility Classes
   =========================== */
.hidden {
    display: none !important;
}

/* ==========================================================================
   GLOBAL LAYOUT & SAFARI STABILIZATION RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    font-size: var(--font-size);
    font-family: var(--font-family);
    overflow: hidden;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    text-rendering: optimizeSpeed;

    -webkit-font-smoothing: antialiased;
    color: var(--text);
    background: var(--background);
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #b0b0b0;
    box-shadow: 0 0 0px 1000px var(--background) inset;
    background-color: var(--background) !important;
}

input {
    padding: 8px;
    margin: 5px 3px;
    color: var(--text);
    border: 1px solid var(--border);
    outline: 2px solid var(--button-hover);
    outline-offset: 1px;
    border-radius: var(--radius);
    background: var(--background);
}

* {
    scrollbar-color: var(--background) var(--text); /* thumb | track */
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--text);
}

*::-webkit-scrollbar-thumb {
    background: var(--background);
}

ol, ul {
	list-style-type: disc; 
	padding-left: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

a {
    color: var(--button);
    text-decoration: none;
    background: transparent;
}

a:hover {
    color: var(--button-hover);
    text-decoration: none;
    background: transparent;
}

.container.scroll {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
}

.container.scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

h1 {
	font-size: 2.7rem;
}

h2 {
	font-size: 2.0rem;
}

 h3 {
	font-size: 1.8rem;
}

 h4 {
	font-size: 1.4rem;
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

header {
    display: grid;
    grid-template-columns: auto auto;
    align-items: start;
    padding: 5px 10px;
    overflow: visible;
    background: url("../images/banner.jpg") center/cover no-repeat;
    border: 3px solid var(--border);
    border-bottom-width: 1.5px;
    border-radius: var(--radius);
}

.logo img {
    height: clamp(5rem, 25vh, 15rem);
    background: transparent;
    border-radius: var(--radius);
    transition: transform 0.2s ease-in-out;
}

.logo:hover img {
    transform: scale(1.1);   /* grows 10% on hover */
}

.search {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    background: transparent;
}


/* ===========================
   NAV SECTION
   =========================== */

.nav {
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    min-width: 0;
    flex-shrink: 1;
}

.nav .mobile-top-row {
    background: transparent;
}

.nav .mobile-header-link {
    display: none;
}

.dropdown {
    position: relative;
    display: inline-block;
    background: transparent;
}

.dropbtn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-content {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: none;
    left: 0;
    max-height: 300px;
    min-width: 220px;
    overflow-y: auto;
    overflow-x: auto;

    position: absolute;
    top: 100%;
    z-index: 9999;
}

.dropdown-content a {
    background-color: var(--surface);
    color: var(--text);
    display: block;
    padding: 3px 14px;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: var(--surface);
    color: var(--accent);
}


/* ===========================
    Main
   =========================== */

main{
    border: 3px solid var(--border);
    border-top-width: 1.5px;
    border-bottom-width: 1.5px;
    border-radius: var(--radius);
}

.main-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px 10px;
    padding: 5px 0;
}

.new-items { 
	grid-column: 1 / 5; 
	white-space: nowrap;
}

.new-items-image-strip { /* strip with images of lattest products. */
    grid-column: 1 / -1;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    width: 100%;
    height: 250px;
    padding: 3px;
    border: 1px solid var(--border);    
}

.new-items-image-strip:hover .arrow {
    opacity: 1;                 /* fade in on hover */
    pointer-events: auto;       /* clickable when visible */
}

.new-items-image-strip-inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-right: 30px; /* space for fade */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */

}

.new-items-image-strip-inner img {
    height: 205px;     /* force consistent height */
    width: 220px;
    object-fit: contain; /* prevents warping */
    padding: 4px; 

    flex-shrink: 0;
    border-radius: var(--radius);
    scroll-snap-align: start;
}

.new-items-image-strip-inner {
    overflow-x: auto;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */
}

.new-items-image-strip-inner::-webkit-scrollbar {
    display: none;              /* Chrome/Safari */
}

.new-items-image-strip-inner > * {
    flex-shrink: 0;
}

.image-card {
    width: 330px; /* or whatever size you want */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
}

.image-card .caption {
    font-size: 0.8rem;
    text-align: center;
    white-space: none;
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
}

.discover {
	place-items: center;
    padding: 3px;

}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;                 /* 80% of strip height */
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 100px;              /* arrow size */
    color: white;                 /* visible on dark images */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;

    opacity: 0;                 /* hide by default */
    pointer-events: none;       /* prevent invisible arrows from blocking clicks */
    transition: opacity 0.25s ease;
}

.arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: transparent;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.image-row { /* Main grid images and content */
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 5px;
    gap: 10px;
    
}

.image-row img {
	height: 100%;
	width: auto;
	align-text:center;
}

.image-row p {
    border: 1px solid var(--border);
    border-radius: var(--radius);    
}

.image-row > * {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px;
}

.format-guide li {
	font-size: 20pt;
}

/* ===========================
    Contact form
   =========================== */

.contact-form {
    margin: 10px auto;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-form h2 {
    font-size: 0.4rem;
}

.form-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 5px auto;
    gap: 5px;
}

.form-label label {
    width: 200px;      /* fixed label width */
    display: inline-block;
}

.contact-form input {
    padding: 3px;
    background: var(--surface);
    color: var(--text);
    outline: 1px solid var(--button-hover);
    border-radius: var(--radius);
    width: 500px;
}

.contact-form textarea {
    padding: 3px;
    background: var(--surface);   /* your site’s card/background color */
    color: var(--text);           /* keeps text readable */
    outline: 1px solid var(--button-hover);
    border-radius: var(--radius);
    width: 500px;
    height: 185px;
}

.success-box,
.error-box {
    max-width: 500px;
    margin: 10px auto;
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
}


.business-address{
    display: flex;
	flex-direction: column;
}
	

/* ===========================
    Deck form
   =========================== */

.deck-grid-4x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.deck-article {
    grid-column: span 2;
    padding: 0;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
}

.deck-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ===========================
    Cart & Mini Cart (Hover Desktop)
   =========================== */

/* Cart container */
.cart {
    position: relative;
    overflow: visible;
    background: transparent;
}

/* Cart icon */
.cart-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-size: 1.5rem;
    color: var(--text);
    background: transparent;
}

/* Cart count bubble */
.cart-count {
    background: var(--danger);
    color: var(--text);

    width: 1.2rem;
    height: 1.2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 0 0.15rem 0rem;
    font-size: .6rem;
    font-weight: bold;

    border-radius: 50%;
    position: absolute;
    top: -5px;
}

/* Mini-cart dropdown (hidden by default) */
.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    z-index: 9999;
    display: none;
}

/* Mini-cart item layout */
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-thumb {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.mini-cart-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex: 1;
}

.mini-cart-name {
    line-height: 1.2;
}

.mini-cart-qty-price {
    display: flex;
    justify-content: space-between;
    color: var(--text);
}


/* ===========================
    Contact Page Layout
   =========================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.left textarea,
.right input {
    width: 100%;
}

.form-grid .btn {
    margin-top: 15px;
    width: 200px;
}


/* ===========================
    Footer
   =========================== */

footer {
    background-color: var(--background);
    color: var(--text);
    border: 3px solid var(--border);
    border-bottom-top: 1.5px;
    border-radius: var(--radius);
}

.footer-inline a {
	padding: 0 2px; /* tighter link spacing */
}



/* ===========================
    BUTTONS 
   =========================== */

.btn {
    font-family: var(--font-family);
    font-size: clamp(0.6rem, 1.9vw, 1.25rem);

    font-weight: 650;   /* bold */

    background: var(--button);
    color: var(--button-text);

    padding: 5px 10px;
    border: none;
    outline: none;
    border-radius: var(--radius);

    cursor: pointer;
    text-decoration: none;
    display: inline-block;

    appearance: none;
    -webkit-appearance: none;
}

.btn:hover {
    background: var(--button-hover);
    color: var(--button-text);
}


.btn-mini {
    display: inline-block;
    padding: 6px 10px;
}

.add-to-cart-btn {
    padding: 4px 8px;
    cursor: pointer;
    flex-grow: 1;
    white-space: nowrap;
}

.add-to-cart-form {
    margin: 0;
    padding: 0;
    width: 100%;
}



/* ===========================
    Layout Containers
   =========================== */

.container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--background);
    box-shadow: 0 0 6px rgba(0,0,0,0.10);
}

.container.scroll {
    overflow: auto;
}

.page-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width, 250px) 5px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}


/* ===========================
    Sidebar
   =========================== */

.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--border);
    padding: 3px;
    background: var(--background);
    overflow-y: auto;
    overflow-x: hidden;

}

.sidebar-scroll {
    min-height: 0;
    max-height: 70vh;
}

.sidebar h3 {
    margin: 10px 10px;
    text-decoration: underline;
    font-size: 0.9rem;

}

.sidebar-list {
    list-style: none;
    line-height: 1.1;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-top: 1px;
}

.sidebar-list a {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-list a:hover {
    color: var(--button-hover);
    text-decoration: none;
}

.sidebar-main-bold {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.set-sub {
    padding-left: 2px;
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
}

.set-sub::before {
    content: "└";

}


/* ===========================
    Hololive Sidebar adjustments
   =========================== */

.setcode {
    display: inline-block;
    transform: scale(0.7);
    transform-origin: left;
    opacity: 0.9;
}

/* ===========================
    Divider piece
   =========================== */
.divider {
    width: 5px;
    background: var(--border);
    cursor: col-resize;
    user-select: none;
}


/* ===========================
    Content area
   =========================== */

.content-area {
    display: flex;
    flex-direction: column;
    background: var(--background);
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
    padding: 0 2px 2px 2px;
    box-sizing: border-box;

    min-height: 0;
    overflow-y: auto;
    min-width: 0;
    font-size: 1.0rem;
}


/* ===========================
    Inventory Table
   =========================== */

.inventory-container {
    width: 100%;
    min-width: 0;
}

.inventory-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.inventory-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.inventory-table thead tr {
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 10;
    box-shadow: 0 2px 3px rgba(0,0,0,0.10);
    white-space: nowrap;
}

.inventory-table th {
    padding: 3px;
    border-bottom: 1px solid var(--gray-2);
    background-color: var(--surface);
    font-weight: bold;
    text-align: center;
    min-width: 0;
    vertical-align: middle;
    color: var(--text);
}

.inventory-table td {
    border-bottom: 1px solid var(--gray-2);
    text-align: center;
    min-width: 0;
    vertical-align: middle;
    color: var(--text);
    padding: 3px;
}

.inventory-table th.col-actions {
    text-align: center !important;
    padding-left: 0;
    padding-right: 0;
}

.inventory-table td img {
    max-width: 100%;
    height: auto;
}

.col-actions {
    width: 130px;
    min-width: 130px;
    text-align: center;
}

.thumb-wrapper {
    position: relative;
    display: inline-block;
}

.thumb-row {
    display: flex;
    gap: 6px;
}

.thumb {
    width: 35px;
    height: auto;
    cursor: pointer;
}


/* ===========================
    Image Enlarger
   =========================== */

.large-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9999;
    pointer-events: none;
}

.thumb-wrapper:hover .large-container {
    display: flex;
    gap: 10px;
}

.large-container .large {
    max-width: 35vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}


/* ===========================
    Qty input & Add button
   =========================== */

.qty-input {
    width: 40px;
    box-sizing: border-box;
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-1);
    color: var(--text);
    background: var(--background);
}

.action-flex {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}


/* ===========================
    Homepage Layout
   =========================== */


.home-box {
    flex: 1;
    min-width: 250px;
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    background: var(--background);
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
    border-radius: var(--radius);
}

/* ===========================
    Status Badges
=========================== */

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-weight: bold;
    color: var(--button-text);
    background: var(--accent);
}

.status-badge.cancelled {
    background: var(--danger);
}

.status-badge.completed {
    background: var(--button);
}


/* ===========================
    Add-to-Cart Popup
=========================== */

.added-popup {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--button);
    color: var(--button-text);
    padding: 5px 10px;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 99999;
}

.added-popup.show {
    opacity: 1;
    background: var(--button-hover);
}


/* ===========================
    MEDIA SECTION
=========================== */

/* ===========================
    Desktop: Hover Opens Dropdowns
=========================== */
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-content {
        display: block;
    }


    .dropdown.force-close .dropdown-content {
        display: none !important;
    }

    /* 🔹 This line kills click behavior on the main selected item */
    .dropdown > .selected {
        pointer-events: none;
    }
}

@media (hover: none) and (pointer: fine) {
    .dropdown:hover .dropdown-content {
        display: block;
    }


    .dropdown.force-close .dropdown-content {
        display: none !important;
    }
}



/* ===========================
    Tablet Adjustments
=========================== */
@media (min-width: 481px) and (max-width: 900px) {

    .page-layout {
        grid-template-columns: 200px 1fr;
    }

    .sidebar {
        padding: 8px;
    }

    .inventory-table th,
    .inventory-table td {
    }

    .thumb {
        width: 45px;
    }
}

/* ===========================
    Mobile Adjustments
=========================== */
@media (max-width: 480px) {

    .no-mobile {
        display: none;
    }

    header {
        display: block;
        background-image: url("../images/mobile-banner.jpg");
        padding: 20px 0 0 0;
    }

    .nav {
        display: inline-flex;
        justify-content: center;
    }

    .nav .mobile-top-row {
        display: flex;
        align-items: center;
        gap: 10px;
        background: transparent;
    }

    .nav .mobile-header-link {
        display: inline-block;
    }

    .nav .btn,
    .nav a {
        font-size: 0.8rem;
        padding: 3px;
    }

    .dropdown-content a {
        padding: 13px 14px;
    }


    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-height: 200px;
        overflow-y: auto;
	font-size: 1.5rem;
        border: 1px solid var(--border);
	border-radius: var(--radius);
    }

    .sidebar-list li {
        margin-top: 4px;
    }

    .content-area {
        border: 1px solid var(--border);
	border-radius: var(--radius);

	font-size: 0.9rem;
    }

    .inventory-table th,
    .inventory-table td {
        padding: 0px;
    }

    .main-images {
        grid-template-columns: 1fr 1fr;
        gap: 5px 10px;
    }

    .main-image {
        max-width: 100%;
    }

    .new-items-image-strip {
        height: 125px;
        width: auto;
    }

.deck-grid-4x4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.deck-article {
    grid-column: span 2;
    padding: 0;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
}

.deck-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}


    html {
        font-size: 13px;
    }
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }


    ul li a {
        margin-bottom: 10px;
    }

    .set-sub a {
        margin-bottom: 6px; /* or whatever spacing you want */
    }

    .new-items-image-strip-inner img {
        height: 90px;
        object-fit: contain;
    }

    .new-items-image-strip::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 70px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to left, black, transparent);
    }

    .image-card {
        width: 110px;
        object-fit: contain;
    }

    .format-guide {
        width: 110px;
        object-fit: contain;
    }

    .format-guide ul {
        padding-left: 10px;
    }

    .format-guide li {
        margin-bottom: 4px;
        padding: 4px 0;
        font-size: 11pt;
    }

    .form-label label {
        width: 95px;
    }

    .contact-form textarea {
        width: 250px;
    }


    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .form-grid input, textarea {
        width: 90%;
        box-sizing: border-box;
    }

    .inventory-table thead {
        display: none;
    }

    /* 3-column grid */
    .inventory-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr; 
        grid-template-rows: auto auto auto;
        gap: 1px;
        padding: 0px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
    }

    .inventory-table td {
        padding: 1px;
        border-bottom: none;
        color: var(--text);
        box-sizing: border-box;
        text-align: left;

    }

    .cell-image {grid-column: 1; grid-row: 1 / span 2;}

    .cell-name {grid-column: 2 / span 2; grid-row: 1;}
    .cell-set {grid-column: 3; grid-row: 3; }
    .cell-number {grid-column: 4; grid-row: 1; }

    .cell-finish { grid-column: 4; grid-row: 2; }
    .cell-rarity { grid-column: 3; grid-row: 2; }
    .cell-condition { grid-column: 2; grid-row: 2; }

    .cell-price { grid-column: 1; grid-row: 3; }
    .cell-qty { grid-column: 2; grid-row: 3; }

    .cell-action {grid-column: 4 / span 2; grid-row: 3;}

    .cell-total {grid-column: 3; grid-row: 3;}

    /* Image */
    td img.thumb {
        width: 60px;
        height: auto;
        border-radius: var(--radius);
    }

    /* Action area */
    .action-flex {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .qty-input {
        width: 35px;
        padding: 2px;
        border-radius: var(--radius);
        background: var(--background);
        color: var(--text);
        border: 1px solid var(--gray-1);
    }

    .add-to-cart-btn {
        padding: 2px 6px;
        font-size: 17px;
        background: var(--button);
        color: var(--button-text);
        border-radius: var(--radius);
        border: none;
    }

    .add-to-cart-btn:hover {
        background: var(--button-hover);
    }


    .cart-count {
	width: 0.9rem;
	height: 0.9rem;
        font-size: 12px;
	right: -5px;   /* this is the missing piece */
    }

    .cart-icon {
        font-size: 1.8rem !important;   /* break inheritance */
        line-height: 1 !important;    /* prevents squishing */
        display: inline-flex !important; /* stops inline-block scaling */
        padding: 0 !important;        /* removes btn padding */
    }

    /* Generic label styling for ANY cell-* class */
    .cell-image::before,
    .cell-number::before,
    .cell-name::before,
    .cell-finish::before,
    .cell-rarity::before,
    .cell-lang::before,
    .cell-condition::before,
    .cell-price::before,
    .cell-qty::before,
    .cell-set::before,
    .cell-category::before,
    .cell-action::before, 
    .cell-total::before{
        display: block;
        font-size: 0.70rem;
        font-weight: 600;
        color: var(--gray-2);
        text-transform: uppercase;
        letter-spacing: 0.5px;
	line-height: 0.5;
    }

    /* Individual labels */
    .cell-image::before { content: ""; }
    .cell-number::before { content: "Number"; }
    .cell-name::before { content: "Name"; }
    .cell-finish::before { content: "Finish"; }
    .cell-rarity::before { content: "Rarity"; }
    .cell-lang::before { content: "Language"; }
    .cell-condition::before { content: "Condition"; }
    .cell-price::before { content: "Price"; }
    .cell-qty::before { content: "Qty"; }
    .cell-set::before { content: "Set"; }
    .cell-category::before { content: "Category"; }
    .cell-action::before { content: ""; }
    .cell-total::before { content: "Total"; }
  

    .cell-lang,
    .cell-category{
        display: none !important;
    }

    footer {
        font-size: 10px;
        padding: 5px;
    }
}

/* ===========================
    Print Adjustments
=========================== */
@media print {
    header,
    footer,
    .admin-left,
    .sidebar,
    button,
    .btn,
    .remove-btn,
    form,
    .header-divider,
    .footer-divider,
    .large-container {
        display: none !important;
    }

    html, body {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        color: black !important;
    }

    .page-layout,
    .content-area,
    .cart-page,
    #order-details,
    #admin-right,
    .admin-right,
    [id*="admin-right"],
    main {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .order-info-grid {
        display: block !important;
        width: 100% !important;
    }

    .order-info-left,
    .order-info-right {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    table,
    .inventory-table,
    .admin-items-table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto !important;
    }

    tr {
        display: table-row !important;
        page-break-inside: avoid !important;
    }

    th, td {
        display: table-cell !important;
        padding: 6px !important;
        border: 1px solid black !important;
        white-space: normal !important;
    }

    @page {
        size: letter;
        margin: 0.5in;
    }
}
