/* ============================
   RCON Shop — Noctis Theme
   ============================ */

/* ============================
   Grouped sections layout (MerryProject style)
   ============================ */
.rcon-shop-section {
    margin-top: 32px;
    margin-bottom: 16px;
}

.rcon-shop-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.rcon-shop-section__info {
    flex: 1;
    min-width: 0;
}

.rcon-shop-section__title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
}

.rcon-shop-section__desc {
    color: #8a8a9a;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.rcon-shop-section__server {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(140, 105, 251, 0.75);
    background: rgba(140, 105, 251, 0.1);
    border: 1px solid rgba(140, 105, 251, 0.25);
    border-radius: 6px;
    padding: 1px 8px;
}

.rcon-shop-section__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #59399B;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.rcon-shop-section__btn:hover {
    background: rgba(89, 57, 156, 0.2);
    border-color: #7a5cc8;
    color: #fff;
}

/* Section grid — 4 columns */
.rcon-shop-section__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Section card */
.rcon-shop-section__card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid #292929;
    background: #1e1e1e;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.rcon-shop-section__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.rcon-shop-section__card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #161616;
}

.rcon-shop-section__card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.rcon-shop-section__card:hover .rcon-shop-section__card-img img {
    transform: scale(1.05);
}

.rcon-shop-section__card-name {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 14px 12px 4px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcon-shop-section__card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 14px 16px;
    margin-top: auto;
    flex-wrap: wrap;
}

.rcon-shop-section__card-price-label {
    color: #7a7a8a;
    font-size: 13px;
}

.rcon-shop-section__card-price {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.rcon-shop-section__card-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #59399B;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.rcon-shop-section__card:hover .rcon-shop-section__card-buy {
    background: rgba(89, 57, 156, 0.25);
    border-color: #7a5cc8;
}

/* ============================
   Original layout (sidebar + grid)
   ============================ */

/* Layout */
.rcon-shop-layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.rcon-shop-sidebar {
    flex: 0 0 240px;
    min-width: 0;
}

.rcon-shop-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar nav sections */
.rcon-shop-nav-section {
    margin-bottom: 20px;
}

.rcon-shop-nav-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-left: 15px;
}

/* Product grid */
.rcon-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding-bottom: 0;
    border-bottom: none;
    flex-wrap: wrap;
}

/* Product card */
.rcon-shop-card {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px !important;
    border: 1px solid #292929 !important;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    position: relative;
}

.rcon-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.rcon-shop-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #161616;
}

.rcon-shop-card__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 !important;
    transition: transform 0.3s ease;
}

.rcon-shop-card:hover .rcon-shop-card__img img {
    transform: scale(1.05);
}

.rcon-shop-card__name {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500;
    text-align: center !important;
    padding: 12px 14px 4px;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcon-shop-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 16px;
    margin-top: auto;
}

.rcon-shop-card__footer .button_long_shopscard {
    float: none;
    margin-right: 0;
    width: auto;
    height: 38px;
    font-size: 13px;
    padding: 0 18px;
    border-radius: 12px;
}

.rcon-shop-card__price {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Empty state */
.rcon-shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #7a7a7a;
    font-size: 16px;
    gap: 12px;
}

.rcon-shop-empty i {
    font-size: 48px;
    color: #3d3d3d;
}

/* ============================
   Product detail page
   ============================ */
.rcon-shop-product-detail {
    background: #232323;
    border-radius: 16px;
    padding: 24px;
}

.rcon-shop-product-detail__top {
    display: flex;
    gap: 30px;
}

.rcon-shop-product-detail__image {
    flex: 0 0 320px;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.rcon-shop-product-detail__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.rcon-shop-product-detail__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rcon-shop-product-detail__title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.rcon-shop-product-detail__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rcon-shop-product-detail__server,
.rcon-shop-product-detail__category {
    background: rgba(89, 57, 156, 0.2);
    color: #b89aff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Tarifs */
.rcon-shop-product-detail__tarifs {
    margin-top: 4px;
}

.rcon-shop-product-detail__tarifs label b {
    color: #e6e6e6;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

.rcon-shop-tarifs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rcon-shop-tarif-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.rcon-shop-tarif-btn input {
    display: none;
}

.rcon-shop-tarif-btn:hover,
.rcon-shop-tarif-btn.active {
    border-color: #59399B;
    background: rgba(89, 57, 156, 0.15);
}

.rcon-shop-tarif-btn__price {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.rcon-shop-tarif-btn__name {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
}

/* Params */
.rcon-shop-product-detail__params {
    margin-top: 4px;
}

.rcon-shop-params-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.rcon-shop-param-input input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.rcon-shop-param-input input:focus {
    border-color: #59399B;
}

.rcon-shop-param-input input::placeholder {
    color: #666;
}

/* Info blocks */
.rcon-shop-info-block {
    background: rgba(89, 57, 156, 0.1);
    border: 1px solid rgba(89, 57, 156, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.rcon-shop-info-block i {
    color: #b89aff;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rcon-shop-info-block--error {
    background: rgba(200, 60, 60, 0.1);
    border-color: rgba(200, 60, 60, 0.25);
}

.rcon-shop-info-block--error i {
    color: #e06060;
}

/* Buy section */
.rcon-shop-product-detail__buy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rcon-shop-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
}

.rcon-shop-checkbox a {
    color: #b89aff;
}

.rcon-shop-buy-btn {
    align-self: flex-start;
    width: auto !important;
    float: none !important;
    margin-right: 0 !important;
    padding: 0 30px;
    height: 48px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.rcon-shop-buy-btn:active {
    transform: scale(0.95);
}

.rcon-shop-buy-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Description */
.rcon-shop-product-detail__desc {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.rcon-shop-product-detail__desc h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.rcon-shop-product-detail__desc .with_code {
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================
   Responsive
   ============================ */

/* Grouped layout responsive */
@media (max-width: 1199.99px) {
    .rcon-shop-section__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.99px) {
    .rcon-shop-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .rcon-shop-section__title {
        font-size: 20px;
    }

    .rcon-shop-section__header {
        flex-direction: column;
        gap: 12px;
    }

    .rcon-shop-section__card-name {
        font-size: 13px;
        padding: 10px 8px 2px;
    }

    .rcon-shop-section__card-footer {
        flex-direction: column;
        gap: 6px;
        padding: 6px 10px 12px;
    }
}

/* Original layout responsive */
@media (max-width: 991.99px) {
    .rcon-shop-layout {
        flex-direction: column;
    }

    .rcon-shop-sidebar {
        flex: none;
        width: 100%;
    }

    .rcon-shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }

    .rcon-shop-product-detail__top {
        flex-direction: column;
    }

    .rcon-shop-product-detail__image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 575.99px) {
    .rcon-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rcon-shop-card__name {
        font-size: 13px !important;
        padding: 8px 10px 2px;
    }

    .rcon-shop-card__footer {
        flex-direction: column;
        gap: 8px;
        padding: 8px 10px 12px;
    }

    .rcon-shop-card__footer .button_long_shopscard {
        width: 100%;
        justify-content: center;
    }

    .rcon-shop-product-detail {
        padding: 16px;
    }

    .rcon-shop-product-detail__title {
        font-size: 20px;
    }

    .rcon-shop-tarifs-grid {
        flex-direction: column;
    }

    .rcon-shop-tarif-btn {
        width: 100%;
    }
}
