/* Chateau Green / Sweet Honey final visual system */
body,
input,
select,
textarea,
button {
    font-family: var(--font-body);
}

body {
    color: var(--text-body);
    background: #fff;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.admin-hero h1,
.page-header h1,
.section-header h2 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

.site-header,
.site-header.scrolled,
.catalog-toolbar,
.filter-panel,
.admin-form-card,
.admin-table-card,
.cart-modal-panel,
.admin-confirm-panel,
.navbar-dropdown,
.site-drawer,
.catalog-sort-popover {
    border-color: var(--border-light);
    background: #fff;
}

.btn,
button,
.product-card-action,
.product-card-secondary,
.catalog-search-submit,
.catalog-icon-button,
.icon-button,
.admin-nav-item {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0;
}

.btn-primary,
.product-card-action,
.drawer-whatsapp,
.mobile-whatsapp-fab,
.cart-modal-submit {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover,
.product-card-action:hover,
.drawer-whatsapp:hover,
.mobile-whatsapp-fab:hover,
.cart-modal-submit:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary,
.product-card-secondary,
.catalog-icon-button,
.icon-button {
    border-color: var(--border-light);
    background: #fff;
    color: var(--text-dark);
}

.btn-secondary:hover,
.product-card-secondary:hover,
.catalog-icon-button:hover,
.icon-button:hover,
.navbar-dropdown a:hover,
.site-drawer-nav a:hover,
.catalog-sort-popover button:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--text-dark);
}

.btn-accent,
.catalog-search-submit,
.mobile-scroll-top {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.catalog-search-submit:hover,
.mobile-scroll-top:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.badge-featured,
.badge-new,
.status-pending,
.status-draft {
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent-dark);
}

.badge-organic,
.status-completed,
.admin-nav-item.active,
.catalog-sort-popover button.active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
}

.product-card-price,
.cart-line-total,
.package-price,
.modal-total-value,
.admin-table th,
.admin-table td,
.responsive-table table th,
.responsive-table table td {
    color: var(--text-dark);
}

.product-card-title,
.product-carousel .product-card-title,
.catalog-content .product-card-title {
    color: var(--text-dark);
}

.product-card-title a,
.product-card-title a:visited,
.product-card-title a:hover,
.catalog-content .product-card-title a,
.catalog-content .product-card-title a:visited,
.catalog-content .product-card-title a:hover,
.product-grid .product-card-title a,
.product-grid .product-card-title a:visited,
.product-grid .product-card-title a:hover {
    color: var(--text-dark);
}

.product-card-stock,
.product-card-category,
.product-card-meta .product-card-stock,
.product-card-meta .product-card-category,
.product-carousel .product-card-stock,
.product-carousel .product-card-category,
.catalog-content .product-card-stock,
.catalog-content .product-card-category {
    color: var(--accent);
}

.product-card-price,
.product-carousel .product-card-price,
.catalog-content .product-card-price {
    color: var(--primary);
}

.price-request,
.product-card-price.price-request,
.package-price.price-request,
.cart-line-total.price-request {
    color: var(--accent-dark);
}

/* Product-card information area follows the premium storefront reference. */
.product-card .product-card-stock {
    color: #4b5563;
}

.product-card .product-card-title,
.product-card .product-card-title a,
.product-card .product-card-title a:visited,
.product-card .product-card-title a:hover {
    color: var(--text-dark);
}

.product-card .product-card-price {
    color: var(--primary);
}

.product-card .product-card-price.price-request {
    color: #b85d12;
}

input,
select,
textarea,
.form-control,
.form-select,
.catalog-category-field select,
.catalog-search-field input {
    color: var(--text-dark);
    border-color: var(--border-light);
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.header-search:focus-within,
.catalog-category-field select:focus,
.catalog-search-field input:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.catalog-category-field select:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
}

.catalog-category-field select option {
    background: #fff;
    color: var(--text-dark);
}

.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.82);
}

.footer a,
.footer-links a,
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer a:hover,
.footer-links a:hover,
.footer-bottom-links a:hover,
.footer-contact li i {
    color: var(--accent);
}

.footer-links h5,
.footer-bottom p,
.footer-about p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links h5::after {
    background: var(--accent);
}

.footer-social a {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
}

.admin-hero,
.section-alt,
.admin-shell > .admin-sidebar {
    background: var(--bg-light);
}

.page-header,
.page-header.compact-page-header,
.compact-page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.page-header h1,
.page-header h2,
.page-header p,
.page-header .breadcrumb,
.page-header .breadcrumb a,
.page-header .breadcrumb .separator,
.page-header.compact-page-header h1,
.compact-page-header h1 {
    color: #fff;
}

.page-header .breadcrumb a:hover {
    color: var(--accent);
}

.admin-nav-item:hover,
.admin-nav-item.active {
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* Products without a hover image must keep showing their main image on hover. */
.product-card:hover .product-img-main {
    opacity: 1;
}

.product-card:has(.product-img-hover):hover .product-img-main {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

.admin-form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-form-section-header h3 {
    margin: 0;
}

.admin-form-section-header p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.package-editor {
    gap: 14px;
}

.package-editor .package-admin-list {
    display: grid;
    gap: 8px;
}

.package-editor .package-admin-row {
    display: grid;
    grid-template-columns: 38px minmax(132px, 0.85fr) minmax(170px, 1.25fr) minmax(132px, 0.8fr) minmax(112px, 0.65fr) 38px;
    align-items: start;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(45, 45, 45, 0.035);
}

.package-editor .package-admin-row[hidden] {
    display: none;
}

.package-row-handle {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.package-editor .package-admin-row label {
    margin: 0;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.package-editor .package-admin-row input,
.package-editor .package-admin-row select {
    min-height: 38px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
}

.package-editor .package-admin-row small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.package-remove-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(180, 35, 24, 0.16);
    border-radius: 9px;
    background: #fff;
    color: #b42318;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.package-remove-button:hover {
    border-color: rgba(180, 35, 24, 0.36);
    background: #fff3f1;
    transform: translateY(-1px);
}

.package-add-button {
    min-height: 36px;
    white-space: nowrap;
}

.package-editor-empty {
    padding: 12px;
    border: 1px dashed var(--border-medium);
    border-radius: 10px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.86rem;
}

@media (max-width: 920px) {
    .admin-form-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .package-editor .package-admin-row {
        grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr) 34px;
    }

    .package-editor .package-admin-row label:nth-of-type(2) {
        grid-column: 2 / 4;
    }
}

@media (max-width: 560px) {
    .package-editor .package-admin-row {
        grid-template-columns: 30px minmax(0, 1fr) 34px;
        gap: 7px;
        padding: 9px;
    }

    .package-editor .package-admin-row label {
        grid-column: 1 / -1;
    }

    .package-editor .package-row-handle {
        grid-column: 1;
        grid-row: 1;
    }

    .package-editor .package-remove-button {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }
}

/* Admin product create/edit editor */
.admin-main .product-admin-form.admin-product-editor {
    width: 100%;
    max-width: 1160px !important;
    box-sizing: border-box;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(45, 45, 45, 0.05);
}

.admin-main,
.admin-shell,
.admin-shell > .admin-main,
.admin-main .product-admin-form.admin-product-editor,
.admin-main .product-admin-form.admin-product-editor * {
    box-sizing: border-box;
    min-width: 0;
}

.admin-product-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 16px;
    align-items: start;
}

.admin-editor-panel {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
}

.admin-editor-main {
    background: linear-gradient(180deg, #fff 0%, rgba(var(--primary-rgb), 0.025) 100%);
}

.admin-editor-side {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-product-editor .admin-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-product-editor .admin-field-wide {
    grid-column: 1 / -1;
}

.admin-product-editor label {
    min-width: 0;
}

.admin-product-editor input,
.admin-product-editor select,
.admin-product-editor textarea {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.admin-product-editor input[type="file"] {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.82rem;
}

.admin-product-editor textarea {
    min-height: auto;
    resize: vertical;
}

.admin-product-editor .admin-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.admin-product-editor .admin-status-grid label {
    min-height: 46px;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.admin-product-editor .admin-status-grid input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--primary);
}

.admin-product-editor .admin-upload-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-product-editor .admin-upload-box {
    position: relative;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-light);
}

.admin-product-editor .admin-upload-box strong {
    color: var(--text-dark);
    font-size: 0.88rem;
}

.admin-product-editor .admin-upload-box span {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.admin-product-editor .admin-upload-box img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: contain;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
}

.admin-product-editor .admin-image-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #b42318;
    box-shadow: 0 8px 20px rgba(45, 45, 45, 0.08);
}

.admin-product-editor .admin-form-section.package-editor {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
}

.admin-product-editor .package-editor .package-admin-list {
    gap: 9px;
}

.admin-product-editor .package-editor .package-admin-row {
    grid-template-columns: 34px minmax(128px, 0.8fr) minmax(180px, 1.2fr) minmax(120px, 0.7fr) minmax(100px, 0.6fr) 34px;
    align-items: start;
    padding: 9px;
    border-radius: 12px;
    background: var(--bg-light);
    box-shadow: none;
}

.admin-product-editor .package-row-handle {
    width: 28px;
    height: 28px;
}

.admin-product-editor .package-remove-button {
    width: 32px;
    height: 32px;
}

.admin-product-editor .admin-actions-row {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.admin-product-editor .admin-actions-row .btn {
    min-height: 42px;
    padding-inline: 18px;
}

@media (min-width: 1280px) {
    .admin-shell {
        width: min(1480px, calc(100% - 40px));
    }
}

@media (max-width: 1180px) {
    .admin-product-editor-grid {
        grid-template-columns: 1fr;
    }

    .admin-editor-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .admin-shell {
        width: calc(100% - 18px);
        max-width: 760px;
        overflow: visible;
    }

    .admin-shell > .admin-main {
        padding: 0 !important;
    }

    .admin-shell > .admin-sidebar {
        overflow-x: hidden !important;
    }

    .admin-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0 !important;
        gap: 8px;
    }

    .admin-nav-item {
        min-width: 0;
        white-space: normal !important;
        justify-content: flex-start;
    }

    .admin-nav-item span,
    .admin-nav-item {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 760px) {
    .admin-page-heading-row {
        gap: 10px;
        margin-bottom: 12px;
    }

    .admin-page-heading-row h2 {
        font-size: 1.25rem;
    }

    .admin-page-heading-row p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .admin-main .product-admin-form.admin-product-editor {
        padding: 12px;
        border-radius: 10px;
    }

    .admin-editor-panel {
        padding: 12px;
        border-radius: 10px;
    }

    .admin-editor-side,
    .admin-product-editor .admin-form-grid.two,
    .admin-product-editor .admin-status-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-editor .package-editor .package-admin-row {
        grid-template-columns: 30px minmax(0, 1fr) 34px;
        padding: 9px;
    }

    .admin-product-editor .package-editor .package-admin-row label {
        grid-column: 1 / -1;
    }

    .admin-product-editor .package-editor .package-row-handle {
        grid-column: 1;
        grid-row: 1;
    }

    .admin-product-editor .package-editor .package-remove-button {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .admin-product-editor .admin-actions-row {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Site-wide typography: premium Lora headings with DM Sans interface copy. */
body,
button,
input,
select,
textarea,
.btn,
.admin-nav-item,
.admin-table,
.form-control,
.form-select {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.section-header h2,
.compact-page-header h1,
.detail-title,
.product-card-title,
.cart-modal-copy h2,
.admin-page-heading h2,
.admin-topbar h1,
.admin-confirm-panel h2 {
    font-family: var(--font-heading) !important;
}

/* Product card metadata: stock code left, category badge right. */
.product-card .product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-card .product-card-meta .product-card-category {
    flex: 0 1 auto;
    margin: 0;
    color: #fff;
    text-align: right;
}

.product-card .product-card-price-value {
    font-size: 1.35em;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.product-card .product-card-price-note {
    margin-left: 2px;
    font-size: 1em;
    font-weight: 600;
}

@media (max-width: 460px) {
    .admin-shell {
        width: calc(100% - 14px);
        margin-top: 14px;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }
}

/* Admin density and readability pass */
.admin-shell {
    font-size: 0.88rem;
}

.admin-page-heading {
    margin-bottom: 14px;
}

.admin-page-heading h2,
.admin-topbar h1 {
    font-size: 1.2rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.admin-page-heading p,
.admin-form-section-header p,
.admin-panel-card p,
.admin-form-card label span:not(.text-danger),
.admin-upload-box span,
.empty-state p {
    font-size: 0.78rem;
    line-height: 1.45;
}

.admin-form-card,
.admin-table-card,
.admin-panel-card {
    padding: 14px;
}

.admin-form-card {
    gap: 11px;
}

.admin-form-section {
    gap: 10px;
}

.admin-form-section h3,
.admin-form-section-header h3 {
    font-size: 0.96rem;
    line-height: 1.25;
}

.admin-form-card label,
.admin-product-editor label {
    gap: 5px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.admin-form-card input,
.admin-form-card select,
.admin-form-card textarea,
.admin-product-editor input,
.admin-product-editor select,
.admin-product-editor textarea {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-form-card textarea,
.admin-product-editor textarea {
    min-height: 96px;
}

.admin-form-grid.two {
    gap: 10px;
}

.admin-nav-item {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
}

.admin-table th {
    padding: 9px 10px;
    font-size: 0.7rem;
}

.admin-table td {
    padding: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.status-badge,
.admin-row-actions .btn,
.admin-row-actions .icon-button,
.admin-actions-row .btn,
.admin-filter-bar .btn,
.admin-filter-bar input,
.admin-filter-bar select {
    font-size: 0.78rem;
}

.admin-actions-row {
    gap: 8px;
}

.admin-product-editor .admin-editor-panel {
    padding: 13px;
}

.admin-product-editor .package-editor .package-admin-row {
    padding: 8px;
}

.admin-product-editor .package-editor .package-admin-row input,
.admin-product-editor .package-editor .package-admin-row select {
    min-height: 36px;
    font-size: 0.78rem;
}

.admin-product-editor .package-editor .package-admin-row label {
    font-size: 0.7rem;
}

.admin-product-editor .package-editor .package-admin-row small {
    font-size: 0.68rem;
}

@media (max-width: 760px) {
    .admin-form-card,
    .admin-table-card,
    .admin-panel-card {
        padding: 12px;
    }

    .admin-page-heading h2,
    .admin-topbar h1 {
        font-size: 1.1rem;
    }
}
