/* General Styles */
body {
    font-family: 'Georgia', serif; /* Elegant font for floral theme */
    color: #333;
    background-color: #fff;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    background-color: #f5e9e6; /* Light pink */
}

/* Shop Section */
.shop {
    background-color: #fff;
}
.shop .card {
    background-color: #a1b495; /* Soft green for cards */
    color: #fff;
    border: none;
}
.shop .card-img-top {
    height: 200px;
    object-fit: cover;
}
.shop .btn-primary {
    background-color: #8b9d83; /* Darker green */
    border: none;
}
/* Catalog Section */
.catalog-section {
    background-color: #fff;
}

.catalog-filters {
    padding: 1.25rem;
    border: 1px solid #ececec;
    border-radius: 12px;
    background-color: #faf7f6;
}

.catalog-filters .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6f6a68;
}

.catalog-card {
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.catalog-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.favorite-form {
    margin: 0;
}

.favorite-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9cecb;
    border-radius: 999px;
    background-color: #fff;
    color: #8b6d70;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.favorite-btn:hover {
    background-color: #f8efee;
    color: #a15362;
    border-color: #cdaeb3;
}

.favorite-btn.is-active {
    background-color: #f5e2e5;
    color: #b24558;
    border-color: #d89aa5;
}

.favorite-btn-detail {
    flex-shrink: 0;
}

.favorite-product-card {
    overflow: hidden;
}


/* Follow Section */
.follow {
    background-color: #f5e9e6; /* Light pink */
}
.follow img {
    height: 350px;
   
}

/* Divisor Icons Section */
.divisor-icons {
    background-color:  #f5e9e6;
}

.divisor-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #8b9d83;
}

.divisor-icon-item ion-icon {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.divisor-icon-item span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

.event-text-col {
    padding-left: 0.6rem;
}

.event-img {
    width: 68%;
    max-width: 360px;
}



/* Featured Products Section */
.featured{
    background-color: #f8f9fa;
}
.featured .card {
    border: 1px solid #ddd;
}
.featured .card-img-top {
    background-color: #f8f9fa; /* Light bg for images */
}

.featured-img {
    height: 220px;
    object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }
    .follow img {
        height: auto;
    }

    .featured-scroll-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
    }

    .featured-item {
        flex: 0 0 82%;
        max-width: 82%;
        margin-bottom: 0;
        scroll-snap-align: start;
    }

    .event-grid {
        --bs-gutter-x: 0.5rem;
    }

    .event-img {
        height: 140px;
    }

    .event-text-col {
        margin-top: 0.8rem;
        text-align: left;
        padding-left: calc(var(--bs-gutter-x) * 0.5);
    }

    .favorite-btn {
        width: 40px;
        height: 40px;
    }
}

/* Footer */
.footer {
    border-top: 1px solid #e0d6d6;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.08em;
    color: #888;
    font-size: 0.75rem;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #8b9d83;
}

.footer-social {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social:hover {
    color: #8b9d83;
}

.admin-nav-link {
    padding: 0.45rem 0.9rem !important;
    border: 1px solid #d9cecb;
    border-radius: 999px;
    background-color: #fff;
}

.admin-nav-link:hover {
    background-color: #f8f4f2;
}

.admin-dashboard-page {
    background: linear-gradient(180deg, #fbf8f6 0%, #f4f0ea 100%);
}

.admin-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, #8fa88f, #8b9d83);
    color: #fff;
    box-shadow: 0 18px 40px rgba(24, 53, 47, 0.18);
}

.admin-collection-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, #1d3c35 0%, #4f6c60 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(24, 53, 47, 0.16);
}

.admin-hero::after {
    content: "";
    position: absolute;
    inset: auto -6rem -6rem auto;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.admin-hero-copy {
    color: rgba(255, 255, 255, 0.88);
    max-width: 48rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-stat {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

.admin-stat-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 0.25rem;
}

.admin-stat strong {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1;
}

.admin-section-title {
    font-family: 'Playfair Display', serif;
    color: #2f2a28;
}

.admin-card {
    border-radius: 18px;
    border: 1px solid #e8dfd9;
    background: #fff;
    box-shadow: 0 10px 22px rgba(24, 53, 47, 0.07);
}

.admin-valuation-section {
    scroll-margin-top: 1rem;
}

.admin-valuation-hero {
    background: linear-gradient(135deg, #18352f 0%, #2d5a4f 55%, #8b9d83 100%);
    border: 0;
    color: #fff;
}

.admin-valuation-hero-copy {
    color: rgba(255, 255, 255, 0.82);
    max-width: 40rem;
}

.admin-valuation-summary-grid {
    display: grid;
    gap: 0.75rem;
}

.admin-valuation-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-valuation-summary-item .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
}

.admin-valuation-summary-item .value {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
}

.admin-valuation-list .list-group-item {
    background: transparent;
    border-color: #efe7e1;
}

@media (max-width: 575.98px) {
    .admin-valuation-hero .display-5 {
        font-size: 2rem;
    }

    .admin-valuation-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.admin-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f3ede8;
    color: #8b9d83;
    font-size: 1.15rem;
}

.admin-card-icon-lg {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1.35rem;
}

.admin-count-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a726e;
}

.admin-count {
    font-size: 1.5rem;
    color: #18352f;
}

.admin-table thead th {
    border-top: 0;
    color: #7a726e;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-table tbody td {
    border-color: #eee6e2;
}

.admin-list {
    border-radius: 14px;
    overflow: hidden;
}

.admin-list-item {
    border-color: #efe6e2;
}

.small-link {
    color: #8b9d83;
    text-decoration: none;
    font-weight: 600;
}

.small-link:hover {
    color: #6f7f67;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pending {
    background: #f7edd6;
    color: #8b6706;
}

.status-shipped {
    background: #dbeaf6;
    color: #1e5c86;
}

.status-completed {
    background: #dbf1e2;
    color: #1d6a3b;
}

.order-status-form {
    min-width: 7.5rem;
}

.status-select {
    font-weight: 700;
    text-transform: capitalize;
    border: 0;
    cursor: pointer;
}

.status-select.status-pending {
    background: #f7edd6;
    color: #8b6706;
}

.status-select.status-shipped {
    background: #dbeaf6;
    color: #1e5c86;
}

.status-select.status-completed {
    background: #dbf1e2;
    color: #1d6a3b;
}

.status-available {
    background: #dff1e4;
    color: #1d6a3b;
}

.status-unavailable {
    background: #f4e1e4;
    color: #9b3447;
}

.admin-note {
    border-radius: 18px;
    border: 1px solid #e8dfd9;
    background: #fffaf7;
    color: #5e5754;
}

/* Login */
.login-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.login-card {
    background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.login-card .btn-primary {
    background-color: #8b9d83;
    border-color: #8b9d83;
}

.login-card .btn-primary:hover {
    background-color: #74866c;
    border-color: #74866c;
}

/* About page */
.about-page-hero {
    background: linear-gradient(180deg, #f8f2ef 0%, #fff 100%);
}

.about-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b9d83;
    font-weight: 700;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.15;
    color: #2f2a28;
}

.about-section-title {
    font-family: 'Playfair Display', serif;
    color: #2f2a28;
}

.about-lead {
    font-size: 1.05rem;
    color: #5c5653;
    line-height: 1.75;
}

.about-hero-img {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.about-story {
    background-color: #fff;
}

.about-story p {
    color: #5f5a57;
    line-height: 1.8;
    font-size: 1.02rem;
}

.about-values {
    background-color: #fbf8f7;
}

.value-card {
    border: 1px solid #e8dfdc;
    border-radius: 14px;
    padding: 1.4rem;
    background-color: #fff;
}

.value-card h5 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.6rem;
}

.value-card p {
    color: #6a6561;
}

.about-cta {
    background-color: #fff;
}

.about-cta-btn {
    background-color: #8b9d83;
    border-color: #8b9d83;
    padding: 0.6rem 1.4rem;
}

.about-cta-btn:hover {
    background-color: #74866c;
    border-color: #74866c;
}

.about-copy {
    max-width: 640px;
}

.about-hero-media {
    display: flex;
    justify-content: center;
}

.about-cta-inner {
    max-width: 760px;
}

@media (max-width: 991px) {
    .about-hero-img {
        max-height: 360px;
    }
}

@media (max-width: 768px) {
    .about-page-hero,
    .about-story,
    .about-values,
    .about-cta {
        padding-top: 2.4rem !important;
        padding-bottom: 2.4rem !important;
    }

    .about-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.09em;
        text-align: center;
    }

    .about-title {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
        line-height: 1.2;
        text-align: center;
    }

    .about-lead {
        font-size: 0.98rem;
        text-align: left;
        margin-inline: auto;
    }

    .about-hero-media {
        margin-top: 0.15rem;
    }

    .about-hero-img {
        max-height: 290px;
        border-radius: 16px !important;
    }

    .about-story p {
        text-align: left;
        font-size: 0.98rem;
    }

    .value-card {
        padding: 1.1rem;
    }

    .value-card p {
        font-size: 0.95rem;
    }

    .about-cta p {
        margin-left: auto;
        margin-right: auto;
        max-width: 32ch;
    }

    .about-cta-btn {
        width: 100%;
        max-width: 260px;
    }
}

/* Contact */
.contact-page {
    background: linear-gradient(180deg, #f8f2ef 0%, #fff 100%);
}

.contact-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.contact-radio-group {
    padding: 0.75rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
}




.contact-radio-group ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-submit {
    background-color: #8b9d83;
    border-color: #8b9d83;
}

.contact-submit:hover {
    background-color: #74866c;
    border-color: #74866c;
}

/* Cart */
.cart-page {
    background-color: #fff;
}

.cart-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
}

.cart-summary {
    max-width: 320px;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.cart-table-wrap {
    overflow-x: auto;
}

.cart-table td,
.cart-table th {
    vertical-align: middle;
}

.cart-quantity-form input[type="number"] {
    min-width: 70px;
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr.cart-row {
        border: 1px solid #ececec;
        border-radius: 14px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
        background-color: #fff;
    }

    .cart-table td {
        border: 0;
        padding: 0.45rem 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #8b9d83;
    }

    .cart-table td[data-label="Product"]::before {
        margin-bottom: 0.6rem;
    }

    .cart-table td[data-label="Product"] .d-flex {
        align-items: flex-start;
    }

    .cart-thumb {
        width: 72px;
        height: 72px;
        flex-shrink: 0;
    }

    .cart-quantity-form {
        flex-wrap: wrap;
    }

    .cart-quantity-form .form-control,
    .cart-quantity-form .btn {
        width: 100%;
    }

    .cart-summary {
        max-width: 100%;
        margin-left: 0;
    }
}

/* Product detail */
.product-detail-page {
    background-color: #fff;
}

.product-detail-image-wrap {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1rem;
    background-color: #fafafa;
}

.product-detail-image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.product-type {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b9d83;
    font-weight: 700;
}

.product-pricing,
.product-meta {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background-color: #fff;
}

/* Admin order product picker */
.admin-product-picker-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.admin-product-picker-modal .modal-body {
    padding-top: 0.75rem;
}

.admin-product-picker-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 0.5rem;
    background: #fff;
}

.admin-product-picker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.admin-product-picker-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 4.25rem;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 0.35rem 0.55rem;
    border: 1px solid #ebe4df;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-product-picker-card:hover,
.admin-product-picker-card:focus-visible {
    border-color: #8b9d83;
    background: #fbf8f6;
    box-shadow: 0 2px 8px rgba(24, 53, 47, 0.07);
    outline: none;
}

.admin-product-picker-card-image-wrap {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7f2ef;
    border: 1px solid #efe8e4;
    display: block;
}

.admin-product-picker-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-product-picker-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.05rem;
    overflow: hidden;
}

.admin-product-picker-card-name,
.admin-product-picker-card-meta,
.admin-product-picker-card-price {
    display: block;
}

.admin-product-picker-card-name {
    font-weight: 600;
    color: #2f2a28;
    font-size: 0.8rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-picker-card-meta {
    font-size: 0.68rem;
    color: #8a827f;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-product-picker-card-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #4f6c60;
    text-align: right;
    white-space: nowrap;
}

.product-picker-trigger {
    min-height: 72px;
    border: 1px dashed #cdbfb8;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.product-picker-trigger:hover,
.product-picker-trigger:focus-visible {
    border-color: #8b9d83;
    background: #fbf8f6;
    outline: none;
}

.product-picker-trigger.is-selected {
    border-style: solid;
    border-color: #d8cec8;
    background: #fff;
}

.product-picker-empty {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #7a726f;
    font-size: 0.92rem;
    font-weight: 500;
}

.selected-product-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
}

.selected-product-preview-image {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.selected-product-preview-copy {
    min-width: 0;
    flex: 1;
}

.selected-product-preview-name {
    font-weight: 600;
    color: #2f2a28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-product-preview-meta {
    font-size: 0.8rem;
    color: #7a726f;
}

.selected-product-preview-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4f6c60;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .admin-product-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }
}

.cart-nav-link {
    position: relative;
}

.cart-count-badge {
    position: absolute;
    top: 2px;
    right: -6px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #8b9d83;
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.1rem;
    text-align: center;
    font-weight: 700;
}

.cart-nav-link.is-bumped .fa-cart-shopping {
    animation: cart-bump 0.35s ease;
}

@keyframes cart-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cart-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    width: min(22rem, calc(100vw - 2rem));
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-toast-card {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #ece6e3;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(47, 42, 40, 0.16);
}

.cart-toast-image {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #f5e9e6;
    flex-shrink: 0;
}

.cart-toast-copy {
    min-width: 0;
    flex: 1;
}

.cart-toast-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b9d83;
    font-weight: 700;
}

.cart-toast-name {
    margin: 0;
    color: #2f2a28;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-toast-link {
    font-size: 0.85rem;
    color: #4f6c60;
    font-weight: 600;
    text-decoration: none;
}

.cart-toast-link:hover {
    text-decoration: underline;
}

.cart-toast-close {
    border: 0;
    background: transparent;
    color: #8a827e;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0;
}

/* Phone-only layout. Laptop / tablet widths stay unchanged. */
@media (max-width: 767.98px) {
    .table-responsive:has(table.dashboard-preview-table),
    .table-responsive:has(table.stack-table) {
        overflow: visible;
    }

    table.dashboard-preview-table thead,
    table.stack-table thead {
        display: none;
    }

    table.dashboard-preview-table,
    table.dashboard-preview-table tbody,
    table.stack-table,
    table.stack-table tbody {
        display: block;
        width: 100%;
    }

    table.dashboard-preview-table tbody tr,
    table.stack-table tbody tr {
        display: block;
        width: 100%;
        border: 1px solid #ececec;
        border-radius: 14px;
        padding: 0.85rem 1rem;
        margin-bottom: 0.85rem;
        background: #fff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    }

    table.dashboard-preview-table tbody tr:last-child,
    table.stack-table tbody tr:last-child {
        margin-bottom: 0;
    }

    table.dashboard-preview-table td,
    table.stack-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.85rem;
        width: 100%;
        border: 0;
        padding: 0.4rem 0;
        text-align: left !important;
        white-space: normal;
        max-width: none !important;
    }

    table.dashboard-preview-table td:first-child,
    table.stack-table td:first-child {
        padding-top: 0;
    }

    table.dashboard-preview-table td:last-child,
    table.stack-table td:last-child {
        padding-bottom: 0;
    }

    table.dashboard-preview-table td[colspan],
    table.stack-table td[colspan] {
        display: block;
        text-align: center !important;
    }

    table.dashboard-preview-table td::before,
    table.stack-table td::before {
        content: attr(data-label);
        flex: 0 0 38%;
        max-width: 42%;
        margin: 0;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #8b9d83;
        line-height: 1.35;
    }

    table.dashboard-preview-table td:not([data-label])::before,
    table.dashboard-preview-table td[data-label=""]::before,
    table.dashboard-preview-table td[colspan]::before,
    table.stack-table td:not([data-label])::before,
    table.stack-table td[data-label=""]::before,
    table.stack-table td[colspan]::before {
        display: none;
    }

    table.dashboard-preview-table td .text-truncate,
    table.stack-table td .text-truncate {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        max-width: none !important;
    }

    table.dashboard-preview-table td .d-inline-flex,
    table.stack-table td .d-inline-flex {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    table.dashboard-preview-table .form-select,
    table.stack-table .form-select {
        width: 100%;
        min-width: 0;
    }

    .mobile-stack {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    .mobile-stack > .btn,
    .mobile-stack > form,
    .mobile-stack > form > .btn {
        width: 100%;
    }

    .admin-hero .btn-lg,
    .admin-collection-hero .btn {
        width: 100%;
    }

    .js-add-to-cart {
        flex-wrap: wrap;
        width: 100%;
    }

    .js-add-to-cart input[name="quantity"] {
        max-width: none !important;
        flex: 1 1 100%;
    }

    .js-add-to-cart .btn {
        width: 100%;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .btn-group > .btn {
        flex: 1 1 auto;
    }

    .dashboard-preview-table tbody tr:nth-child(n+4) {
        display: none !important;
    }

    .dashboard-preview-list .admin-list-item:nth-child(n+4) {
        display: none;
    }

    .admin-collection-page {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .admin-collection-page .admin-collection-hero {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .admin-collection-page .admin-collection-hero .display-6 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem !important;
    }

    .admin-collection-page .admin-collection-hero .lead,
    .admin-collection-page .admin-hero-copy {
        font-size: 0.86rem;
    }

    .admin-collection-page .admin-card-icon-lg {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1rem;
    }

    .admin-collection-page .admin-collection-hero .btn {
        width: auto;
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .admin-collection-page .admin-card {
        padding: 0.85rem !important;
    }

    .admin-collection-page .admin-section-title {
        font-size: 1.1rem;
    }

    .admin-collection-page .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-collection-page .admin-table {
        font-size: 0.78rem;
        margin-bottom: 0;
    }

    .admin-collection-page .admin-table thead th {
        font-size: 0.66rem;
        padding: 0.35rem 0.4rem;
        white-space: nowrap;
    }

    .admin-collection-page .admin-table td {
        padding: 0.4rem 0.4rem;
        vertical-align: middle;
    }

    .admin-collection-page .admin-table .small,
    .admin-collection-page .admin-table .text-muted.small {
        font-size: 0.68rem;
    }

    .admin-collection-page .status-pill {
        min-width: 0;
        padding: 0.18rem 0.45rem;
        font-size: 0.68rem;
    }

    .admin-collection-page .form-select-sm {
        min-width: 6.25rem;
        font-size: 0.75rem;
        padding: 0.2rem 1.5rem 0.2rem 0.4rem;
    }

    .admin-collection-page .small-link {
        font-size: 0.74rem;
    }

    .admin-collection-page .badge {
        font-size: 0.68rem;
    }
}

@media print {
    table.admin-table,
    table.stack-table {
        display: table !important;
        width: 100% !important;
    }

    table.admin-table thead,
    table.stack-table thead {
        display: table-header-group !important;
    }

    table.admin-table tbody,
    table.stack-table tbody {
        display: table-row-group !important;
    }

    table.admin-table tr,
    table.stack-table tr {
        display: table-row !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    table.admin-table th,
    table.admin-table td,
    table.stack-table th,
    table.stack-table td {
        display: table-cell !important;
    }

    table.admin-table td::before,
    table.stack-table td::before {
        display: none !important;
    }
}