/* =========================================================
   Base / Global
   ========================================================= */

html,
body {
    background: #fffaf8;
}

.site-shell {
    background: var(--theme-background, #fffaf8);
}

.content-card,
.hero-card,
.page-hero-card,
.product-card,
.empty-state,
.admin-stat-card,
.dashboard-mini-card,
.order-admin-card,
.inquiry-admin-card {
    background: var(--theme-surface, #ffffff);
}

.btn-dark {
    background-color: var(--theme-accent, #212529) !important;
    border-color: var(--theme-accent, #212529) !important;
    color: var(--theme-accent-text, #ffffff) !important;
}

.btn-outline-dark {
    color: var(--theme-accent, #212529) !important;
    border-color: var(--theme-accent, #212529) !important;
}

    .btn-outline-dark:hover,
    .btn-outline-dark:focus {
        background-color: var(--theme-accent, #212529) !important;
        border-color: var(--theme-accent, #212529) !important;
        color: var(--theme-accent-text, #ffffff) !important;
    }

.form-control-color {
    width: 56px;
    min-width: 56px;
    padding: 0.375rem;
}
.site-footer-admin-link {
    opacity: 0.85;
}

main {
    width: 100%;
}


/* =========================================================
   Navigation / Header
   ========================================================= */

.brand-title {
    font-size: 1.2rem;
    letter-spacing: 0.3px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.nav-link {
    font-weight: 500;
}

    .nav-link.active {
        color: #000 !important;
        font-weight: 700;
    }


/* =========================================================
   Layout / Shared Sections
   ========================================================= */

.section-spacing {
    padding: 4rem 0;
}

.page-hero {
    padding: 2.5rem 0 3rem;
}

.page-hero-sm {
    padding-bottom: 2rem;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.page-hero-card,
.content-card,
.empty-state,
.admin-stat-card {
    background: var(--theme-surface, #ffffff);
    border: 1px solid #eee3de;
    border-radius: 24px;
    padding: 1.5rem;
}

.content-card {
    padding: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}


/* =========================================================
   Buttons / Forms
   ========================================================= */

.btn-dark,
.btn-outline-dark {
    border-radius: 999px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.form-control,
.form-select {
    border-radius: 14px;
}

textarea.form-control {
    border-radius: 18px;
}

.content-card .form-check-input {
    margin-top: 0.3rem;
}


/* =========================================================
   Hero / Home
   ========================================================= */

.hero-section {
    padding: 4rem 0;
}

.hero-card {
    background: linear-gradient(135deg, #fff8f4 0%, #f4e7e1 100%);
    border-radius: 24px;
    padding: 3rem;
}

.hero-image-wrap {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
}

.hero-title {
    line-height: 1.1;
}

.hero-copy {
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.featured-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}


/* =========================================================
   Shop / Product Cards
   ========================================================= */

.shop-filter-pill {
    background: #f6ece8;
    color: #6d5b53;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.product-card {
    background: var(--theme-surface, #ffffff);
    border: 1px solid #eee3de;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    }

    .product-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        display: block;
    }

.product-card-body {
    padding: 1.25rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.product-description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.shop-hero-card {
    padding: 2rem;
}

.shop-hero-copy {
    max-width: 42rem;
}

.shop-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-product-card {
    display: flex;
    flex-direction: column;
}

.shop-product-image-wrap {
    position: relative;
    overflow: hidden;
}

.shop-product-stock-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(6px);
}

    .shop-product-stock-badge.sold-out {
        background: rgba(33, 37, 41, 0.92);
        color: #fff;
    }

    .shop-product-stock-badge.low-stock {
        background: rgba(255, 243, 205, 0.95);
        color: #5c4300;
        border: 1px solid rgba(146, 112, 0, 0.15);
    }

.shop-card-link-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2b2b2b;
}


/* =========================================================
   Product Details
   ========================================================= */

.product-detail-section {
    padding-top: 2rem;
}

.product-detail-content {
    display: flex;
    flex-direction: column;
}

.product-detail-image-wrap {
    background: var(--theme-surface, #ffffff);
    border: 1px solid #eee3de;
    border-radius: 24px;
    padding: 1rem;
    width: 100%;
    overflow: hidden;
}

.product-detail-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    background: #f8f3f0;
}

.product-detail-title {
    line-height: 1.1;
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
}

.product-detail-description {
    max-width: 38rem;
}

.product-detail-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-detail-stock-badge {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

    .product-detail-stock-badge.in-stock {
        background: #edf7ed;
        color: #1f5f2c;
        border: 1px solid #cfe8d1;
    }

    .product-detail-stock-badge.low-stock {
        background: #fff3cd;
        color: #5c4300;
        border: 1px solid #ead79c;
    }

.product-detail-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-detail-info-card {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    min-width: 0;
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 18px;
    padding: 1rem;
}

.product-detail-info-label {
    display: inline-block;
    width: auto;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
#components-reconnect-modal {
    display: none !important;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: none !important;
    }
.product-detail-info-value {
    display: inline-block;
    width: auto;
    font-weight: 600;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .product-detail-actions .btn {
        min-width: 180px;
    }

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-gallery-thumb-button {
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    border-radius: 14px;
    line-height: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

    .product-gallery-thumb-button:hover {
        transform: translateY(-2px);
    }

    .product-gallery-thumb-button.active {
        border-color: #2b2b2b;
    }

.product-gallery-thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 1px solid #eee3de;
    display: block;
}
/* =======================================================
    Admin products
    ===================================================== */
.admin-product-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 20px;
    padding: 1rem;
}

.admin-product-card-main {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-product-image-wrap {
    width: 104px;
    height: 104px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee3de;
    background: #f8f3f0;
}

.admin-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.admin-product-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.admin-product-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.admin-product-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-product-meta-item {
    background: #ffffff;
    border: 1px solid #f0e6e1;
    border-radius: 16px;
    padding: 0.85rem;
    min-width: 0;
}

.admin-product-meta-label {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.admin-product-meta-value {
    font-weight: 600;
    word-break: break-word;
}

.admin-product-slug {
    font-size: 0.9rem;
}

.admin-product-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

@media (max-width: 575.98px) {
    .admin-product-card-main {
        grid-template-columns: 1fr;
    }

    .admin-product-image-wrap {
        width: 100%;
        height: 220px;
    }

    .admin-product-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-product-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-card-actions {
        flex-direction: column;
    }

        .admin-product-card-actions .btn {
            width: 100%;
        }
}
.product-edit-sidebar {
    position: sticky;
    top: 6rem;
}

.product-edit-note-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-edit-note-item {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    color: #5f5651;
    font-weight: 500;
}

.product-edit-action-btn {
    min-width: 180px;
}

@media (max-width: 991.98px) {
    .product-edit-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .product-edit-action-btn {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   Admin / CRM Shared
   ========================================================= */

.admin-stat-card {
    padding: 1.5rem;
}

.admin-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.admin-stat-link {
    display: block;
    color: inherit;
}

.admin-stat-card-clickable {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .admin-stat-card-clickable:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
        border-color: #dfd2cb;
    }

.admin-stat-subtext {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.dashboard-mini-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 18px;
    padding: 1rem;
    height: 100%;
}

.dashboard-mini-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.dashboard-mini-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-mini-note {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.dashboard-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dashboard-checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f0e6e1;
}

    .dashboard-checklist-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.dashboard-checklist-label {
    color: #6c757d;
}

.dashboard-checklist-value {
    font-weight: 700;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (max-width: 991.98px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    .dashboard-header-actions {
        flex-direction: column;
    }

        .dashboard-header-actions .btn {
            width: 100%;
        }

    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-checklist-item {
        align-items: flex-start;
        flex-direction: row;
    }

    .dashboard-checklist-value {
        margin-left: auto;
    }
}
.admin-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee3de;
    flex-shrink: 0;
}

.table > :not(caption) > * > * {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.inquiry-message {
    white-space: pre-wrap;
    line-height: 1.6;
}

.settings-preview-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 18px;
    padding: 1rem;
}
.settings-preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-preview-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.settings-preview-logo {
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-bottom: 0;
}
.site-logo-responsive {
    height: var(--logo-height, 48px);
    max-height: var(--logo-height, 48px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .site-logo-responsive {
        height: calc(var(--logo-height, 48px) * 0.9);
    }
}
.nav-shell {
    align-items: flex-end;
}

@media (min-width: 992px) {
    .nav-collapse-desktop-bottom {
        display: flex !important;
        align-items: flex-end;
    }

    .nav-links-desktop-bottom {
        display: flex;
        align-items: flex-end;
    }

        .nav-links-desktop-bottom .nav-item {
            display: flex;
            align-items: flex-end;
        }

    .desktop-nav-link-lower {
        line-height: 1.1;
        transform: translateY(0.45rem);
    }

    .admin-nav-button-wrap {
        display: flex;
        align-items: flex-end;
    }

    .admin-user-wrap {
        display: flex;
        align-items: flex-end;
    }

    .admin-user-block {
        line-height: 1.15;
        padding-bottom: 0.1rem;
        text-align: right;
        white-space: nowrap;
    }
}
.legal-page-card {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

    .legal-content h2 {
        font-size: 1.15rem;
        font-weight: 700;
        margin: 0;
    }

    .legal-content p,
    .legal-content li {
        color: #5f5651;
        line-height: 1.75;
        margin: 0;
    }

@media (max-width: 575.98px) {
    .legal-content {
        gap: 1rem;
    }

        .legal-content h2 {
            font-size: 1.05rem;
        }
}
.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 0;
    background: var(--theme-footer-color, #fffaf8);
    border-top: 1px solid #eee3de;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.site-footer-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-footer-logo {
    width: auto;
    height: 72px;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

    .footer-link:hover {
        text-decoration: underline;
    }

@media (max-width: 991.98px) {
    .site-footer {
        padding: 2rem 0;
    }

    .site-footer-logo {
        height: 64px;
        max-width: 190px;
    }
}

@media (max-width: 575.98px) {
    .site-footer-brand {
        align-items: flex-start;
    }

    .site-footer-logo {
        height: 56px;
        max-width: 160px;
    }
}
@media (max-width: 991.98px) {
    .nav-shell {
        align-items: center;
    }

    .desktop-nav-link-lower {
        transform: none;
    }

    .admin-user-block {
        text-align: left;
    }
}
.spam-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.announcement-bar {
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .site-settings-sidebar {
        position: static;
    }
}
.brand-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo {
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* =========================================================
   Admin Orders Cards
   ========================================================= */

.admin-order-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.admin-order-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 20px;
    padding: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

    .admin-order-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
        border-color: #dfd2cb;
    }

    .admin-order-card:active {
        transform: translateY(-1px);
        background: #fdf4f0;
    }

.admin-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-order-number {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.admin-order-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-order-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-order-meta-item {
    background: #ffffff;
    border: 1px solid #f0e6e1;
    border-radius: 16px;
    padding: 0.85rem;
    min-width: 0;
}

.admin-order-meta-label {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.admin-order-meta-value {
    font-weight: 600;
    word-break: break-word;
}

.admin-order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #f0e6e1;
}

.admin-order-card-arrow {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6c757d;
}

.order-detail-item-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 20px;
    padding: 1rem;
}

.order-detail-item-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.order-detail-item-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #eee3de;
    display: block;
}

.order-detail-item-content {
    min-width: 0;
}

.order-detail-item-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.order-detail-item-title {
    line-height: 1.25;
    word-break: break-word;
}

.order-detail-address {
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    .order-detail-item-main {
        grid-template-columns: 1fr;
    }

    .order-detail-item-image {
        width: 100%;
        height: 220px;
    }

    .order-detail-item-top {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* =========================================================
   Admin Inquiry Cards
   ========================================================= */

.admin-inquiry-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.admin-inquiry-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 20px;
    padding: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

    .admin-inquiry-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
        border-color: #dfd2cb;
    }

    .admin-inquiry-card:active {
        transform: translateY(-1px);
        background: #fdf4f0;
    }

.admin-inquiry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-inquiry-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.admin-inquiry-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-inquiry-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-inquiry-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-inquiry-meta-item {
    background: #ffffff;
    border: 1px solid #f0e6e1;
    border-radius: 16px;
    padding: 0.85rem;
    min-width: 0;
}

.admin-inquiry-meta-label {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.admin-inquiry-meta-value {
    font-weight: 600;
    word-break: break-word;
}

.admin-inquiry-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #f0e6e1;
}

.admin-inquiry-card-arrow {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6c757d;
}


/* =========================================================
   Image Upload / Admin Gallery
   ========================================================= */

.image-upload-card {
    background: #fff;
    border: 1px solid #eee3de;
    border-radius: 18px;
    padding: 1rem;
}

.uploaded-image-preview {
    width: 100%;
    max-width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #eee3de;
    display: block;
}

.gallery-admin-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 20px;
    padding: 1rem;
    overflow: hidden;
}

.gallery-admin-image-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #eee3de;
    background: #f8f3f0;
}

.gallery-admin-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* =========================================================
   Cart
   ========================================================= */

.cart-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 20px;
    padding: 1rem;
    overflow: hidden;
}

.cart-item-main {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
}

.cart-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #eee3de;
    display: block;
}

.cart-item-content {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.cart-item-title {
    line-height: 1.25;
    word-break: break-word;
}

.cart-item-total {
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-value {
    min-width: 1.75rem;
    text-align: center;
    font-weight: 600;
}

.cart-summary-card {
    position: sticky;
    top: 6rem;
}
/* =========================================================
    Contact Page
   ========================================================= */
.contact-hero-card {
    padding: 2rem;
}

.contact-hero-copy {
    max-width: 42rem;
}

.contact-product-context {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 20px;
    padding: 1rem;
}

.contact-product-context-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 1px solid #eee3de;
    display: block;
}

.contact-topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-topic-item {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    color: #5f5651;
    font-weight: 500;
}

.contact-submit-btn {
    min-width: 180px;
}

@media (max-width: 575.98px) {
    .contact-hero-card {
        padding: 1.5rem;
    }

    .contact-submit-btn {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   Checkout
   ========================================================= */

.checkout-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkout-payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.checkout-pay-btn {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    .checkout-pay-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .checkout-pay-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.checkout-pay-btn-stripe {
    background: #0a2540;
    color: #ffffff;
}

.checkout-pay-btn-paypal {
    background: #ffc439;
    color: #111111;
}

.checkout-pay-btn-brand {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.checkout-pay-btn-text {
    text-align: right;
}

.checkout-summary-card {
    position: sticky;
    top: 6rem;
}
.checkout-provider-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-provider-btn {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

    .checkout-provider-btn:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .checkout-provider-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .checkout-provider-btn.stripe {
        background: #635bff;
        color: #ffffff;
    }

    .checkout-provider-btn.paypal {
        background: #ffc439;
        color: #111111;
    }

.checkout-provider-brand {
    flex-shrink: 0;
    min-width: 92px;
    text-align: center;
}

.stripe-brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    color: #ffffff;
}

.paypal-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.paypal-pay {
    color: #003087;
}

.paypal-pal {
    color: #009cde;
}

.checkout-provider-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.checkout-provider-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.checkout-provider-subtitle {
    font-size: 0.92rem;
    line-height: 1.35;
    opacity: 0.95;
}

@media (max-width: 575.98px) {
    .checkout-provider-btn {
        align-items: flex-start;
        padding: 0.95rem 1rem;
    }

    .checkout-provider-brand {
        min-width: 74px;
        text-align: left;
    }

    .stripe-brand,
    .paypal-brand {
        font-size: 1.15rem;
    }

    .checkout-provider-title {
        font-size: 0.95rem;
    }

    .checkout-provider-subtitle {
        font-size: 0.85rem;
    }
}
.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.checkout-summary-item-main {
    min-width: 0;
}

.checkout-summary-item-total {
    white-space: nowrap;
    font-weight: 600;
}
/* =========================================================
   about / paypall success
   ========================================================= */
.about-hero-card {
    padding: 2rem;
}

.about-hero-copy {
    max-width: 42rem;
}

.about-copy {
    max-width: 42rem;
}

.about-highlight-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-highlight-item {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    color: #5f5651;
    font-weight: 500;
}

.paypal-success-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.paypal-success-card {
    padding: 3rem 2rem;
}

@media (max-width: 575.98px) {
    .about-hero-card {
        padding: 1.5rem;
    }

    .paypal-success-card {
        padding: 2rem 1.25rem;
    }
}
.checkout-success-wrap,
.paypal-success-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.checkout-success-card,
.paypal-success-card {
    padding: 3rem 2rem;
}

@media (max-width: 575.98px) {
    .checkout-success-card,
    .paypal-success-card {
        padding: 2rem 1.25rem;
    }
}

/* =========================================================
   Utilities
   ========================================================= */

.badge.text-bg-warning {
    color: #3d2f13 !important;
}

.legal-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 1.5rem;
    align-items: start;
}

.legal-page-media {
    min-width: 0;
}

.legal-page-card {
    max-width: none;
    margin: 0;
}

.legal-page-image {
    width: 100%;
    height: 100%;
    max-height: 520px;
    min-height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    border: 1px solid #eee3de;
    background: var(--theme-surface, #ffffff);
}

@media (max-width: 991.98px) {
    .legal-page-layout {
        grid-template-columns: 1fr;
    }

    .legal-page-image {
        max-height: 420px;
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .legal-page-layout {
        gap: 1rem;
    }

    .legal-page-image {
        min-height: 180px;
        border-radius: 20px;
    }
}
/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .hero-card {
        padding: 2rem;
    }

    .hero-image {
        height: 360px;
    }

    .product-detail-section {
        padding-top: 1.5rem;
    }

    .product-detail-actions .btn {
        flex: 1 1 calc(50% - 0.75rem);
    }

    .cart-summary-card,
    .checkout-summary-card {
        position: static;
    }

    .cart-item-main {
        grid-template-columns: 1fr;
    }

    .cart-thumb {
        width: 100%;
        height: 240px;
    }

    .cart-item-top {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-item-total {
        white-space: normal;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-qty {
        justify-content: space-between;
        width: 100%;
    }
}
.desktop-cart-nav-wrap {
    display: flex;
    align-items: flex-end;
}

.desktop-cart-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e6d9d2;
    border-radius: 999px;
    background: var(--theme-surface, #ffffff);
    color: var(--theme-accent, #212529);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .desktop-cart-nav-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
        border-color: #d8c7bf;
        color: var(--theme-accent, #212529);
    }

.desktop-cart-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

    .desktop-cart-icon svg {
        width: 20px;
        height: 20px;
    }

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
}

.mobile-cart-dock {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
}
.shop-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .shop-category-filter .btn {
        width: 100%;
    }
}
.admin-category-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 18px;
    padding: 1rem;
}

.mobile-cart-dock-link {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 999px;
    background: var(--theme-accent, #212529);
    color: var(--theme-accent-text, #ffffff);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    font-weight: 700;
}
.site-footer-payments {
    margin-top: 1.5rem;
}

.site-footer-payments-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.site-footer-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.admin-content-page-card,
.admin-content-section-card {
    background: #fffaf8;
    border: 1px solid #eee3de;
    border-radius: 18px;
    padding: 1rem;
}

    .admin-content-section-card.active {
        border-color: var(--theme-accent, #212529);
        box-shadow: 0 0 0 2px rgba(33, 37, 41, 0.06);
    }

.admin-section-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.section-drag-handle {
    cursor: grab;
    min-width: 38px;
    flex-shrink: 0;
}

    .section-drag-handle:active {
        cursor: grabbing;
    }

.section-drag-ghost {
    opacity: 0.45;
}
.content-page-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-page-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.content-page-col {
    min-width: 0;
}

.content-page-col-full {
    grid-column: span 12;
}

.content-page-col-half {
    grid-column: span 6;
}

.content-page-col-third {
    grid-column: span 4;
}

.content-page-col-two-thirds {
    grid-column: span 8;
}

.content-page-box {
    height: 100%;
}

.content-page-paragraph {
    line-height: 1.85;
    margin-bottom: 0;
}

.content-page-image-wrap {
    width: 100%;
}

.content-page-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    border: 1px solid #eee3de;
}

@media (max-width: 991.98px) {
    .content-page-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-page-col-full,
    .content-page-col-half,
    .content-page-col-third,
    .content-page-col-two-thirds {
        grid-column: span 1;
    }
}

.section-drag-chosen {
    box-shadow: 0 0 0 2px rgba(33, 37, 41, 0.08);
}

.section-drag-dragging {
    transform: rotate(1deg);
}

.min-width-0 {
    min-width: 0;
}
.content-page-section + .content-page-section {
    margin-top: 1.75rem;
}

.content-page-paragraph {
    line-height: 1.85;
    max-width: 46rem;
    margin-bottom: 0;
}

.content-page-image-wrap {
    width: 100%;
}

.content-page-image {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: block;
    border-radius: 24px;
    border: 1px solid #eee3de;
}

.about-hero-card {
    padding: 2.5rem;
}

.about-copy,
.content-page-paragraph {
    font-size: 1.05rem;
}

@media (max-width: 991.98px) {
    .content-page-section + .content-page-section {
        margin-top: 1.35rem;
    }

    .content-page-image {
        max-width: 100%;
    }
}
.admin-content-section-card {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .admin-content-section-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
    }

    .admin-content-section-card.active {
        border-color: var(--bs-dark);
        box-shadow: 0 0 0 .2rem rgba(33, 37, 41, .08);
    }

.admin-section-preview {
    white-space: pre-wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.cms-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1040;
}

.cms-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cms-modal-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
    width: min(960px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid #eee3de;
}

.cms-modal-body {
    padding: 1.25rem 1.25rem 1.5rem;
    overflow: auto;
}

.cms-modal-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cms-modal-body .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.cms-modal-body .form-label {
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.cms-modal-body .tox,
.cms-modal-body .tox-tinymce {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 18px !important;
}

.cms-modal-body .tox-tinymce {
    border: 1px solid #dee2e6 !important;
}

.cms-modal-body .tox .tox-editor-header {
    border-bottom: 1px solid #eee3de !important;
}

.cms-modal-body .tox .tox-toolbar,
.cms-modal-body .tox .tox-toolbar__primary,
.cms-modal-body .tox .tox-toolbar__overflow {
    background: #fffaf8 !important;
}

.cms-modal-body .tox .tox-edit-area__iframe {
    background: #ffffff !important;
}

.cms-modal-body .tox .tox-statusbar {
    border-top: 1px solid #eee3de !important;
}

@media (max-width: 767.98px) {
    .cms-modal-shell {
        align-items: flex-end;
        padding: 0.5rem;
    }

    .cms-modal-card {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        width: 100%;
        max-height: calc(100vh - 0.5rem);
    }

    .cms-modal-header {
        padding: 1rem 1rem 0.75rem;
    }

    .cms-modal-body {
        padding: 1rem 1rem 1.25rem;
    }

    .cms-modal-actions {
        flex-direction: column;
    }

        .cms-modal-actions .btn {
            width: 100%;
        }
}
@media (max-width: 575.98px) {
    .about-hero-card {
        padding: 1.5rem;
    }

    .content-page-paragraph {
        font-size: 1rem;
        line-height: 1.75;
    }

    .content-page-section + .content-page-section {
        margin-top: 1.1rem;
    }

    .content-page-image {
        border-radius: 20px;
    }
}

    .admin-content-section-card.active {
        border-color: var(--theme-accent, #212529);
        box-shadow: 0 0 0 2px rgba(33, 37, 41, 0.06);
    }

.admin-section-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #e6d9d2;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.payment-badge-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .payment-badge-icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

.payment-badge-paypal {
    color: #003087;
    background: #f8fbff;
}

.payment-badge-stripe {
    color: #635bff;
    background: #f7f5ff;
}

@media (max-width: 575.98px) {
    .site-footer-payment-badges {
        gap: 0.5rem;
    }

    .payment-badge {
        font-size: 0.9rem;
        padding: 0.5rem 0.85rem;
    }
}
.mobile-cart-dock-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

    .mobile-cart-dock-icon svg {
        width: 20px;
        height: 20px;
    }

.mobile-cart-dock-text {
    line-height: 1;
}

.mobile-cart-badge {
    position: static;
    min-width: 22px;
    height: 22px;
    border: 0;
    margin-left: 0.1rem;
}

@media (max-width: 991.98px) {
    .desktop-cart-nav-wrap {
        display: none;
    }

    .mobile-cart-dock-link {
        display: inline-flex;
    }

    body {
        padding-bottom: 5.5rem;
    }
}

@media (min-width: 992px) {
    .mobile-cart-dock {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .shop-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-filter-pill {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .section-spacing {
        padding: 3rem 0;
    }

    .content-card,
    .empty-state,
    .page-hero-card,
    .admin-stat-card {
        padding: 1.25rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-title,
    .product-detail-title {
        font-size: 2rem;
    }

    .hero-copy,
    .product-detail-description {
        font-size: 1rem !important;
    }

    .hero-image {
        height: 280px;
    }

    .hero-actions {
        flex-direction: column;
    }

        .hero-actions .btn {
            width: 100%;
        }

    .featured-section-header {
        flex-direction: column;
        align-items: stretch;
    }

        .featured-section-header .btn {
            width: 100%;
        }

    .shop-hero-card {
        padding: 1.5rem;
    }

    .shop-product-stock-badge {
        top: 0.75rem;
        left: 0.75rem;
    }

    .shop-card-link-text {
        font-size: 0.9rem;
    }

    .product-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-actions {
        flex-direction: column;
    }

        .product-detail-actions .btn {
            width: 100%;
            min-width: 0;
        }

    .product-gallery-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

        .product-gallery-thumbs::-webkit-scrollbar {
            height: 6px;
        }

        .product-gallery-thumbs::-webkit-scrollbar-thumb {
            background: #d9c9c1;
            border-radius: 999px;
        }

    .product-gallery-thumb {
        width: 72px;
        height: 72px;
    }

    .checkout-pay-btn {
        padding: 0.95rem 1rem;
    }

    .checkout-pay-btn-text {
        font-size: 0.95rem;
    }

    .admin-order-card,
    .admin-inquiry-card {
        padding: 1rem;
    }

    .admin-order-card-header,
    .admin-inquiry-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-order-meta-grid,
    .admin-inquiry-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-card-footer,
    .admin-inquiry-card-footer {
        margin-top: 0.85rem;
        padding-top: 0.75rem;
    }
}
