/* =========================================================
   CONTAINER
========================================================= */

.order-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}


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

.order-header {
    margin-bottom: 50px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* === TOP ROW === */

.order-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-breadcrumbs.vertical {
    font-size: 13px;
    color: #64748b;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* === META === */

.order-meta-pills {
    display: flex;
    gap: 10px;
}

.meta-pill {
    padding: 6px 12px;
    border-radius: 999px;

    font-size: 12px;
    color: #94a3b8;

    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
}


/* === MAIN ROW === */

.order-main-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    margin-top: 10px;
}

.order-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f1f5f9;
}

.order-buy-btn {
    padding: 10px 18px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;

    background: linear-gradient(135deg, #936ce8, #ff031a);
    color: white;

    text-decoration: none;
    transition: 0.25s ease;
}

.order-buy-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 20px rgba(147,108,232,0.3);
}


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

.group-block {
    margin-bottom: 56px;
}

.group-title {
    text-align: center;

    font-size: 22px;
    font-weight: 600;

    background: linear-gradient(90deg, #e2e8f0, #cbd5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    margin-bottom: 14px;
}

.group-line {
    width: 100%;
    max-width: 1040px;
    height: 2px;

    margin: 0 auto 24px;

    background: linear-gradient(
        90deg,
        transparent,
        #936ce8,
        #ff031a,
        transparent
    );
}


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

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    justify-content: center;
    gap: 16px;
}


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

.item-card {
    width: 100%;

    background: linear-gradient(
        145deg,
        #0b0f1f,
        #15122a
    );

    border: 1px solid rgba(147, 108, 232, 0.12);

    border-radius: 14px;
    overflow: hidden;

    position: relative;
    transition: 0.25s ease;
}

.item-card:hover {
    transform: translateY(-6px);

    border-color: rgba(147, 108, 232, 0.35);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.5),
        0 0 20px rgba(147,108,232,0.15);
}

.item-card::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 14px;

    background: radial-gradient(
        circle at 20% 20%,
        rgba(147,108,232,0.08),
        transparent 60%
    );

    pointer-events: none;
}


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

.item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;

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

    overflow: hidden;
    border-radius: 10px;

    background:
        radial-gradient(circle at 30% 30%, rgba(147,108,232,0.15), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255,3,26,0.12), transparent 60%),
        linear-gradient(135deg, #020617, #0f172a);

    border: 1px solid rgba(148, 163, 184, 0.08);
}

.item-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}


/* =========================================================
   QUANTITY
========================================================= */

.item-quantity {
    position: absolute;
    top: 10px;
    right: 12px;

    font-size: 16px;
    font-weight: 700;

    background: linear-gradient(135deg, #936ce8, #ff031a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}


/* =========================================================
   INFO
========================================================= */

.item-info {
    padding: 12px 10px 14px;
    text-align: center;
}

.item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.empty-block {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;
    margin-top: 20px;

    border-radius: 14px;

    background: rgba(148, 163, 184, 0.04);
    border: 1px dashed rgba(148, 163, 184, 0.15);
}

.empty-block.big {
    padding: 80px 20px;
}

.empty-text {
    font-size: 14px;
    color: #64748b;

    text-align: center;
    letter-spacing: 0.3px;
}


/* =========================================================
   RARITY SYSTEM
========================================================= */

/* DEFAULT */
.item-card.default {
    background: linear-gradient(145deg, #0b0f1f, #15122a);
}

/* COMMON */
.item-card.common {
    background: linear-gradient(145deg, #161a25, #232838);
    border-color: rgba(148, 163, 184, 0.25);
}

/* UNCOMMON */
.item-card.uncommon {
    background: linear-gradient(145deg, #0f2119, #1f3a2c);
    border-color: rgba(34, 197, 94, 0.35);
}

/* RARE */
.item-card.rare {
    background: linear-gradient(145deg, #0e1c35, #1f3f75);
    border-color: rgba(96, 165, 250, 0.35);
}

/* EPIC */
.item-card.epic {
    background: linear-gradient(145deg, #1a0f35, #3a1f6b);
    border-color: rgba(147,108,232,0.4);
}

/* MYTHIC */
.item-card.mythic {
    background: linear-gradient(145deg, #2a0c10, #5a161c);
    border-color: rgba(255,3,26,0.4);
}

/* LEGENDARY */
.item-card.legendary {
    background: linear-gradient(145deg, #2f2408, #6b4e12);
    border-color: rgba(255, 200, 80, 0.5);
}


/* === RARITY GLOW  === */

.item-card.uncommon:hover {
    box-shadow: 0 0 16px rgba(34,197,94,0.18);
}

.item-card.rare:hover {
    box-shadow: 0 0 18px rgba(96,165,250,0.18);
}

.item-card.epic:hover {
    box-shadow: 0 0 20px rgba(147,108,232,0.2);
}

.item-card.mythic:hover {
    box-shadow: 0 0 20px rgba(255,3,26,0.2);
}

.item-card.legendary:hover {
    box-shadow: 0 0 24px rgba(255,200,80,0.22);
}


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

@media (max-width: 768px) {

    .order-header-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .order-main-row {
        flex-direction: column;
        gap: 12px;
    }

    .order-title {
        font-size: 22px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}