.empty-state {
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.detail-info {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--text);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(229, 57, 53, 0.08);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
}

.text-muted {
    color: var(--muted) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(255, 122, 24, 0.25);
    border-color: var(--accent);
    background: linear-gradient(
            180deg,
            #ffffff 70%,
            rgba(255, 122, 24, 0.05)
    );
}

.item-detail-page .container {
    max-width: 1240px;
}

.item-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.item-detail-main,
.item-detail-sidebar {
    min-width: 0;
}

.item-detail-sidebar {
    display: flex;
}

.item-detail-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-detail-panel {
    padding: 28px;
}

.item-detail-media .card-modern {
    border-radius: 24px;
}

.item-detail-media img,
.item-detail-modal-image,
.item-detail-modal-preview {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: 12px;
}

.item-detail-summary {
    position: sticky;
    top: 110px;
    border-radius: 24px;
}

.item-detail-summary-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    word-break: break-word;
}

.item-detail-summary-price {
    font-size: 1.6rem;
    line-height: 1.1;
}

.item-detail-actions form {
    width: 100%;
}

.item-detail-copy,
.item-detail-copy p,
.item-detail-panel .text-muted,
.item-detail-panel h1,
.item-detail-panel h2,
.item-detail-panel h3,
.item-detail-panel h4,
.item-detail-panel h5,
.item-detail-panel h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.item-detail-page .card-modern {
    width: 100%;
    min-width: 0;
}

.items-page .item-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.items-page .item-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.items-page .item-card-link .card-modern {
    height: 100%;
    cursor: pointer;
}

.item-detail-page .table-responsive {
    overflow-x: auto;
}

.item-detail-page table {
    width: 100%;
}

.item-detail-page .row {
    --bs-gutter-x: 1rem;
}

@media (max-width: 991px) {
    .item-detail-layout {
        grid-template-columns: 1fr;
    }

    .item-detail-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .item-detail-panel,
    .item-detail-summary .card-content {
        padding: 20px;
    }

    .item-detail-summary-title {
        font-size: 1.2rem;
    }

    .item-detail-summary-price,
    .item-detail-page .card-price {
        font-size: 1.35rem;
    }
}

.items-page .card-modern .btn {
    padding: 8px;
    font-size: 0.7rem;
    min-height: 32px;
    font-weight: bold;
    width: fit-content;
    align-self: center;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.item-detail-image {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #fff;
    padding: 16px;
}

.item-detail-modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.item-detail-page .info-modern {
    padding: 32px;
}

.item-detail-page .card-price {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.item-detail-page .card-modern .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-height: 42px;
}

.item-detail-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.item-detail-image-trigger:focus {
    outline: none;
}

.item-detail-modal-image {
    display: block;
    width: 100%;
}

.item-detail-modal-content {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
}

.item-detail-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    background: transparent;
}

.item-detail-modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
}

.item-detail-modal-preview {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.number-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.number-input input {
    text-align: center;
    flex: 1;
    font-weight: 600;
}

.number-input button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-input button:hover {
    background: #ff7a18;
    transform: translateY(-1px);
}

.number-input button:active {
    transform: scale(0.95);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-collapse {
        padding-top: 1rem;
    }

    .navbar-nav .btn-outline-secondary,
    .navbar-nav .btn-primary,
    .navbar-nav .btn-accent {
        width: 100%;
    }

    .navbar-nav {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-nav .btn-outline-secondary,
    .navbar-nav .btn-primary,
    .navbar-nav .btn-accent {
        width: 100%;
        justify-content: center;
    }

    .sticky-top {
        position: static !important;
        top: auto !important;
    }

    .section-pad {
        padding: 56px 0;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .card-modern .card-image,
    .item-detail-image .card-image {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .card-modern .card-image,
    .item-detail-image .card-image {
        height: 120px;
    }
}

.items-category {
    scroll-margin-top: 120px;
    margin-bottom: 48px;
}

.items-category-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);

    margin: 0 0 24px;
    padding-bottom: 16px;

    line-height: 1.2;
    letter-spacing: -0.02em;

    position: relative;

    text-align: left;
    width: fit-content;
}

.items-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.items-category {
    scroll-margin-top: 120px;
    margin-bottom: 160px;
}

.items-category-card {
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 20px;
}

.items-category-card .row {
    height: auto;
}

.items-category-image {
    width: 100%;
    max-width: 340px; /* bigger */
    height: 220px; /* taller */
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.items-category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.04);
    color: var(--muted);
    font-weight: 600;
    min-height: 380px;
}

.items-category-title,
.items-category-description {
    word-break: break-word;
}

.items-category-content {
    height: 100%;
    padding: 32px 32px 32px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.items-category-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .items-category {
        margin-bottom: 56px;
    }

    .items-category-card,
    .items-category-card .row,
    .items-category-image,
    .items-category-image-placeholder {
        min-height: auto;
    }

    .items-category-image,
    .items-category-image-placeholder {
        height: 280px;
    }

    .items-category-content {
        padding: 28px 24px;
    }

    .items-category-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .items-category-image,
    .items-category-image-placeholder {
        height: 220px;
    }

    .items-category-title {
        font-size: 1.45rem;
    }

    .items-category-description {
        font-size: 0.7rem;
        line-height: 1.65;
    }
}

.items-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
    align-self: start;
    width: 100%;
}

.items-sidebar-panel {
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 10px;
    width: 100%;
}

.items-sidebar-inner {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 8px;
    border-radius: 18px;
    max-height: none;
    overflow: visible;
}

.items-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;

    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.items-sidebar-title {
    margin-bottom: 12px;
}

.items-sidebar-title {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.items-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.items-sidebar-link {
    min-height: 37px;
    border-radius: 13px;
    font-size: 0.72rem;
    line-height: 1.2;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: 140px;
    max-width: 100%;
    padding: 8px 11px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
    font-weight: 700;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.items-sidebar-link:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08), rgba(255, 122, 24, 0.10));
    border-color: rgba(229, 57, 53, 0.18);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
    color: var(--text);
}

.items-sidebar-link:hover::after {
    transform: translateX(3px);
    opacity: 0.9;
}

.items-sidebar-link.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(229, 57, 53, 0.22);
}

.items-sidebar-link.active::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .items-sidebar {
        position: relative;
        top: auto;
    }

    .items-sidebar-inner {
        padding: 16px;
    }

    .items-sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }

    .items-sidebar-link {
        width: auto;
        flex: 0 0 auto;
        border-radius: 999px;
        padding: 10px 14px;
    }

    .items-sidebar-link::after {
        display: none;
    }
}

/* ========================
   ITEMS SIDEBAR - DARK
======================== */

html[data-theme="dark"] .items-sidebar-inner {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* LABEL */
html[data-theme="dark"] .items-sidebar-title {
    background: rgba(229, 57, 53, 0.14);
    color: #ff9c8f;
}

/* LINKS */
html[data-theme="dark"] .items-sidebar-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: none;
}

/* ARROW */
html[data-theme="dark"] .items-sidebar-link::after {
    color: rgba(255, 255, 255, 0.6);
}

/* HOVER */
html[data-theme="dark"] .items-sidebar-link:hover {
    background: linear-gradient(
            135deg,
            rgba(229, 57, 53, 0.12),
            rgba(255, 122, 24, 0.12)
    );
    border-color: rgba(255, 122, 24, 0.22);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .items-sidebar-link:hover::after {
    opacity: 1;
    color: #fff;
}

/* ACTIVE */
html[data-theme="dark"] .items-sidebar-link.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(229, 57, 53, 0.35);
}

html[data-theme="dark"] .items-sidebar-link.active::after {
    opacity: 1;
    color: #fff;
}

.category-block-hero {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #fff !important;
}

.category-block-image,
.category-block-image-placeholder {
    background: #fff !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.category-block-description {
    background: #fff !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: none;
}

html[data-theme="dark"] .category-block-hero {
    background: #111827 !important;
}

html[data-theme="dark"] .category-block-image {
    background: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .category-block-description {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 768px) {
    .items-page .reveal-item {
        width: 100%;
    }

    .items-page .card-content {
        padding: 14px 12px 16px;
        margin-top: 0;
        gap: 10px;
    }

    .items-page .card-title {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
        min-height: calc(1.3em * 2);
        text-align: center;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .items-page .card-price {
        text-align: center;
        line-height: 1.4;
    }

    .items-page .card-modern .btn {
        width: 100%;
        min-height: 40px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

.items-page .container {
    padding-left: 0.75rem; /* default ~1.5rem → ~50% reduction, visually ≈30% overall */
    padding-right: 0.75rem;
}

/* Slightly tighten grid gutter */
.items-page .row {
    --bs-gutter-x: 1rem; /* default 1.5rem */
}

/* Optional: pull layout slightly left */
.items-page .col-lg-3 {
    padding-left: 0.25rem;
}

.items-page .col-lg-9 {
    padding-left: 0.5rem;
}

.items-sidebar-title {
    padding: 6px 12px;
    margin-bottom: 10px;
    font-size: 0.7rem;
}

.items-sidebar-list {
    gap: 7px;
}


.item-detail-description-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
}

.item-detail-description-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 14px;
    color: var(--text);
    text-align: left;
    width: 100%;
}

.item-detail-description-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.85;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html[data-theme="dark"] .item-detail-description-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}

/*== Items Product ==*/
.items-product-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.items-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    height: auto;
}

.items-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(255, 122, 24, 0.25);
    border-color: var(--accent);
}

.items-product-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 240px;
    flex: 0 0 240px;
    padding: 10px;
    overflow: hidden;
}

.items-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.items-product-card:hover .items-product-image {
    transform: scale(1.06);
}

.items-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg);
    flex: 0 0 68px;
    padding: 0 10px 10px;
    border-top: 1px solid var(--primary);
}

.items-product-title {
    max-width: 100%;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.items-product-price {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
}

.price-info-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
    font-size: 0.8rem;
}

.price-info-block {
    width: 100%;
}

.discount-text {
    border-top: 2px solid var(--primary);
    padding-top: 10px;
    margin-top: 10px;
}

.items-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    width: 260px;
}

.items-sidebar-inner {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 24px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.items-sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 16px;
    margin-bottom: 20px;

    border-radius: 12px;

    background: linear-gradient(
            135deg,
            rgba(229, 57, 53, 0.1) 0%,
            rgba(255, 122, 24, 0.08) 100%
    );

    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    border: 1px solid rgba(229, 57, 53, 0.15);
}

.items-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.items-sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 160px;
    padding: 20px 28px;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 500;
    overflow: hidden;
    isolation: isolate;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.items-sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.items-sidebar-link::after {
    content: '';

    position: absolute;
    inset: 0;

    background: linear-gradient(
            135deg,
            rgba(229, 57, 53, 0.05) 0%,
            rgba(255, 122, 24, 0.08) 100%
    );

    opacity: 0;

    transition: opacity 0.3s ease;

    z-index: -1;
}

.items-sidebar-link:hover {
    transform: translateX(8px);

    border-color: rgba(229, 57, 53, 0.2);

    color: var(--primary);

    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.1);
}

.items-sidebar-link:hover::before {
    transform: translateX(0);
}

.items-sidebar-link:hover::after {
    opacity: 1;
}

.items-sidebar-link.active {
    background: linear-gradient(
            135deg,
            rgba(229, 57, 53, 0.12) 0%,
            rgba(255, 122, 24, 0.1) 100%
    );

    border-color: rgba(229, 57, 53, 0.3);

    color: var(--primary);

    font-weight: 600;

    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.12);
}

.items-sidebar-link.active::before {
    transform: translateX(0);
}

.items-sidebar-link.active::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .items-sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    .items-sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .items-sidebar-link {
        padding: 12px 16px;
        border-radius: 12px;
    }
}

.items-category-header {
    padding: 28px 32px 0;
}

.items-category-title {
    margin: 0;
}


.items-category-title {
    margin: 0;
    text-align: left;
    width: fit-content;
}

.items-category-title {
    margin: 0;
    padding-bottom: 16px;
    text-align: left;
    align-self: flex-start;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;

    position: relative;
    width: fit-content;
}

.items-category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;

    width: 60px;
    height: 3px;

    background: var(--gradient);
    border-radius: 2px;
}

.items-category-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px 32px;
}

.items-category-content {
    padding: 24px 32px;
}

/* =========================
   CATEGORY HERO BLOCK
========================= */

.items-category-card {
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 20px;
}

.items-category-top {
    padding: 32px 40px 12px;
}

.items-category-title {
    margin: 0;
    padding-bottom: 16px;

    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;

    position: relative;
    width: fit-content;

    color: var(--text);
}

.items-category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;

    width: 60px;
    height: 3px;

    background: var(--gradient);
    border-radius: 2px;
}

.items-category-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 40px 40px;
}

.items-category-image {
    width: 100%;
    max-width: 340px;
    height: 220px;

    object-fit: contain;
    object-position: center;

    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.items-category-content {
    height: 100%;

    display: flex;
    align-items: center;

    padding: 24px 40px 40px 10px;
}

.items-category-card .items-category-top {
    display: block;
    width: 100%;
    text-align: left;
    padding: 32px 40px 12px;
}

.items-category-card .items-category-title {
    display: block;
    margin: 0 auto 0 0;
    text-align: left;
    width: fit-content;
}

.item-detail-description-text {
    width: 100%;
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;

    overflow: hidden;
}

.item-detail-main,
.item-detail-panel,
.item-detail-description-card,
.card-content {
    min-width: 0;
}

.item-detail-description-card .card-content {
    display: block;
    flex: initial;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 0;
    padding: 24px;
    min-height: auto;
}

.item-detail-description-card {
    height: auto;
    min-height: auto;
    overflow: hidden;
}

.item-detail-description-text {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

/* =========================
   TABLE RESPONSIVE DARK MODE
========================= */

.item-detail-page .table-responsive {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Light mode table */
.item-detail-page .table-responsive table {
    margin-bottom: 0;
    color: var(--text);
    background: transparent;
}

.item-detail-page .table-responsive thead th {
    background: rgba(17, 24, 39, 0.04);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.item-detail-page .table-responsive td,
.item-detail-page .table-responsive th {
    border-color: rgba(17, 24, 39, 0.08);
    vertical-align: middle;
}

/* DARK MODE */
html[data-theme="dark"] .item-detail-page .table-responsive,
.dark .item-detail-page .table-responsive {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

html[data-theme="dark"] .item-detail-page .table-responsive table,
.dark .item-detail-page .table-responsive table {
    background: #111827;
    color: #e5e7eb;
}

html[data-theme="dark"] .item-detail-page .table-responsive thead th,
.dark .item-detail-page .table-responsive thead th {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

html[data-theme="dark"] .item-detail-page .table-responsive td,
html[data-theme="dark"] .item-detail-page .table-responsive th,
.dark .item-detail-page .table-responsive td,
.dark .item-detail-page .table-responsive th {
    background: transparent;
    color: #e5e7eb;
}
.item-detail-calculator {
    height: auto !important;
}

.item-detail-calculator .card-content {
    display: block;
    min-height: auto;
}
.item-detail-calculator .card-content {
    display: block !important;
}
.item-detail-sidebar {
    display: block;
}

.item-detail-summary {
    flex: initial;
    height: fit-content;
}

.item-detail-summary > .card-content {
    display: block;
}
.item-detail-description-card .card-content {
    display: flex;
    flex-direction: column;

    align-items: flex-start !important;
    justify-content: flex-start !important;

    text-align: left !important;

    width: 100%;
    padding: 24px;
}

.item-detail-description-title,
.item-detail-description-text {
    width: 100%;
    text-align: left !important;
}