/* =========================
   PRODUCT GRID
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

/* =========================
   CARD WRAPPER
========================= */

.product-card-wrapper {
    width: 100%;
    min-width: 0;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
    background: #1b1b1b;
    border-radius: 18px;
    overflow: hidden;

    border: 1px solid #2b2b2b;

    transition: all 0.2s ease;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #444;
}

/* =========================
   IMAGE
========================= */

.product-image-wrapper {
    width: 100%;
    height: 220px;

    background: #111;

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

    overflow: hidden;

    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;

    padding: 1rem;
}

/* =========================
   CARD BODY
========================= */

.order-card-body,
.product-card-body {
    padding: 1rem;

    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;
}

/* =========================
   HEADER
========================= */

.order-header {
    gap: 1rem;
}

.order-product-title,
.product-title {
    font-weight: 700;
    color: white;

    line-height: 1.2;
    margin-bottom: 0.25rem;

    word-break: break-word;
}

.order-product-title a,
.product-title a {
    color: inherit;
    text-decoration: none;
}

.order-product-title a:hover,
.product-title a:hover {
    color: #8ab4ff;
}

.product-brand {
    color: #999;
    font-size: 0.9rem;
}

/* =========================
   VARIANTS WRAPPER
========================= */

.order-variants-wrapper,
.variants-wrapper {
    margin-top: 1rem;
}

.order-variants-wrapper-header,
.variants-wrapper-header {
    background: #181818;

    border: 1px solid #333;
    border-radius: 10px;

    padding: 0.75rem 1rem;

    cursor: pointer;

    margin-bottom: 1rem;

    transition: all 0.2s ease;

    color: white;
}

.order-variants-wrapper-header:hover,
.variants-wrapper-header:hover {
    background: #222;
}

/* =========================
   GROUP CARD
========================= */

.order-variant-group-card,
.variant-group-card {
    background: #242424;

    border-radius: 12px;

    padding: 0.75rem;

    margin-bottom: 1rem;

    border: 1px solid #333;

    overflow: hidden;
}

.order-variant-group-header,
.variant-group-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 0.75rem;

    cursor: pointer;

    color: white;
}

.order-variant-group-title,
.variant-group-title {
    font-weight: 700;
    color: white;
}

.order-variant-group-count,
.variant-group-count {
    font-size: 0.75rem;
    color: #999;
}

/* =========================
   TABLES
========================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.order-variant-table,
.variant-table {
    color: white;

    width: 100%;

    table-layout: fixed;

    margin-bottom: 0;
}

.order-variant-table thead th,
.variant-table thead th {
    border: none;

    font-size: 0.75rem;

    color: #888;

    text-transform: uppercase;
}

.order-variant-table tbody td,
.variant-table tbody td {
    border-color: #333;

    vertical-align: middle;

    overflow-wrap: break-word;
}

.order-variant-table tbody tr:hover,
.variant-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
.order-variant-table {
    width: 100%;
    table-layout: fixed;
}

.order-variant-table td,
.order-variant-table th {
    overflow-wrap: break-word;
    word-break: break-word;
}

.order-variant-group-card {
    min-width: 0;
    overflow: hidden;
}

.order-card-body {
    min-width: 0;
}

.product-card {
    min-width: 0;
}
.group-action-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-shrink: 0;

    margin-left: 0.5rem;
}
/* =========================
   CHEVRON
========================= */

.collapse-chevron {
    display: inline-block;

    transition: transform 0.2s ease;

    margin-right: 6px;

    font-size: 0.8rem;
}

[aria-expanded="false"] .collapse-chevron {
    transform: rotate(-90deg);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image-wrapper {
        height: 180px;
    }
}