/**
 * DryHire Product Table Styles
 * Following DESIGN.md guidelines
 */

/* CSS Variables */
:root {
    --dpt-bg-dark: #000000;
    --dpt-bg-card: #18181b;
    --dpt-bg-input: #27272a;
    --dpt-bg-hover: #333;
    --dpt-text-primary: #ffffff;
    --dpt-text-secondary: #99a1af;
    --dpt-text-muted: #666;
    --dpt-accent: #4f46e5;
    --dpt-accent-hover: #4338ca;
    --dpt-success: #10b981;
    --dpt-error: #ef4444;
    --dpt-warning: #fbbf24;
    --dpt-border: #3F3F46;
    --dpt-border-focus: #4f46e5;
    --dpt-radius: 8px;
    --dpt-radius-lg: 12px;
    --dpt-transition: 0.2s ease;
}

/* Container */
.dpt-container {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 56px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dpt-text-primary);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.dpt-container > * {
    min-width: 0;
}

/* Sidebar */
.dpt-sidebar {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Main content */
.dpt-main {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

/* Filter Sections */
.dpt-filter-section {
    margin-bottom: 0;
}

.dpt-filter-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0 1px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dpt-text-primary);
    font-family: inherit;
}

.dpt-filter-section__header:hover {
    color: var(--dpt-accent);
}

.dpt-filter-section__title {
    font-size: 18px;
    font-weight: 500;
}

/* Plus/Minus icon via CSS */
.dpt-filter-section__icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2399a1af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform var(--dpt-transition);
}

.dpt-filter-section--open .dpt-filter-section__icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2399a1af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line></svg>');
}

.dpt-filter-section__content {
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease;
    padding-bottom: 8px;
}

.dpt-filter-section__content.dpt-hidden {
    max-height: 0 !important;
    padding-bottom: 0;
}

.dpt-filter-section__separator {
    height: 1px;
    background: var(--dpt-border);
}

/* Category list */
.dpt-categories,
.dpt-brands {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dpt-category {
    margin-bottom: 0;
}

.dpt-category__label,
.dpt-brand__label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    cursor: pointer;
    transition: color var(--dpt-transition);
}

.dpt-category__label {
    margin-bottom: 1px !important;
}

.dpt-category__label:hover,
.dpt-brand__label:hover {
    color: var(--dpt-text-primary);
}

/* Custom Checkboxes */
.dpt-category__checkbox,
.dpt-brand__checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #18181B;
    border: 1px solid #3F3F46;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background var(--dpt-transition), border-color var(--dpt-transition);
}

.dpt-category__checkbox:checked,
.dpt-brand__checkbox:checked {
    background: #4F39F6;
    border-color: #4F39F6;
}

.dpt-category__checkbox:checked::before,
.dpt-brand__checkbox:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.dpt-category__checkbox:hover,
.dpt-brand__checkbox:hover {
    border-color: #4F39F6;
}

.dpt-category__checkbox:focus,
.dpt-brand__checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 57, 246, 0.3);
}

.dpt-category__name,
.dpt-brand__name {
    flex: 1;
    font-size: 16px;
    color: var(--dpt-text-primary);
}

.dpt-category__count,
.dpt-brand__count {
    color: var(--dpt-text-secondary);
    font-size: 14px;
}

/* Nested children */
.dpt-category__children {
    padding-left: 36px;
    margin: 0;
    list-style: none;
}

.dpt-category__children.dpt-hidden {
    display: none;
}

/* Price filter */
.dpt-price-filter {
    padding: 8px 0;
}

.dpt-price-filter__inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpt-price-filter__input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 8px 10px;
    background: #18181B;
    color: white;
    border: 1px solid #3F3F46;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--dpt-transition), box-shadow var(--dpt-transition);
}

.dpt-price-filter__input::placeholder {
    color: var(--dpt-text-muted);
}

.dpt-price-filter__input:focus {
    outline: none;
    border-color: var(--dpt-accent);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Hide number input spinners */
.dpt-price-filter__input::-webkit-outer-spin-button,
.dpt-price-filter__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dpt-price-filter__input[type=number] {
    -moz-appearance: textfield;
}

.dpt-price-filter__separator {
    color: var(--dpt-text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

/* Price range slider */
.dpt-price-filter__slider {
    position: relative;
    height: 20px;
    margin: 16px 0 8px;
}

.dpt-price-filter__track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #3F3F46;
    border-radius: 2px;
    transform: translateY(-50%);
}

.dpt-price-filter__range {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--dpt-accent);
    border-radius: 2px;
    transform: translateY(-50%);
}

.dpt-price-filter__thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid var(--dpt-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.dpt-price-filter__thumb:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.dpt-price-filter__thumb--min {
    left: 0%;
}

.dpt-price-filter__thumb--max {
    left: 100%;
}

/* Brand list item */
.dpt-brand {
    margin-bottom: 0;
}

/* Date hint banner */
.dpt-date-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--dpt-radius);
    margin-bottom: 20px;
    cursor: pointer;
    transition: background var(--dpt-transition);
}

.dpt-date-hint:hover {
    background: rgba(251, 191, 36, 0.15);
}

.dpt-date-hint__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.dpt-date-hint__text {
    font-size: 14px;
    color: var(--dpt-warning);
    font-weight: 500;
}

.dpt-date-hint__arrow {
    margin-left: auto;
    color: var(--dpt-warning);
}

.dpt-date-hint--hidden {
    display: none;
}

/* Header controls */
.dpt-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

/* Search input */
.dpt-search {
    width: 320px;
}

.dpt-search__icon {
    display: none;
}

.dpt-search__input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    font-size: 16px;
    color: #ffffff;
    background: #18181b url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23fcfcfc" viewBox="0 0 256 256"><path d="M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"></path></svg>') no-repeat 12px center;
    border: 1px solid var(--dpt-border);
    border-radius: var(--dpt-radius);
    outline: none;
    box-sizing: border-box;
}

.dpt-search__input::placeholder {
    color: var(--dpt-text-secondary);
}

.dpt-search__input:focus {
    border-color: var(--dpt-border-focus);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Sort dropdown */
.dpt-sort {
    position: relative;
}

.dpt-sort__select {
    display: block;
    height: 44px;
    margin: 0;
    padding: 0 44px 0 16px;
    font-size: 16px;
    color: #ffffff;
    background: #18181b url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23fcfcfc" viewBox="0 0 256 256"><path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"></path></svg>') no-repeat calc(100% - 12px) center;
    border: 1px solid var(--dpt-border);
    border-radius: var(--dpt-radius);
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color var(--dpt-transition);
}

.dpt-sort__select:focus {
    border-color: var(--dpt-border-focus);
}

.dpt-sort__icon {
    display: none;
}

/* Count and filters row */
.dpt-count-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* Active filters */
.dpt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dpt-filters:empty {
    display: none;
}

.dpt-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--dpt-accent);
}

.dpt-filter-chip__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: none;
    border: none;
    color: var(--dpt-accent);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.dpt-filter-chip__remove:hover {
    color: var(--dpt-text-primary);
}

.dpt-clear-filters {
    background: none;
    border: none;
    color: var(--dpt-text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    transition: color var(--dpt-transition);
}

.dpt-clear-filters:hover {
    color: var(--dpt-text-primary);
}

/* Product count */
.dpt-count {
    font-size: 14px;
    color: var(--dpt-text-secondary);
    white-space: nowrap;
}

.dpt-count__number {
    color: var(--dpt-text-primary);
    font-weight: 500;
}

/* Table */
.dpt-table {
    width: 976px;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--dpt-bg-card);
    border: 1px solid var(--dpt-border);
    border-radius: var(--dpt-radius-lg);
    table-layout: fixed;
}

/* Fixed column widths - Produkt gets remaining space, others fixed */
.dpt-table th:nth-child(1),
.dpt-table td:nth-child(1) {
    width: auto; /* Produkt - takes remaining space */
}

.dpt-table th:nth-child(2),
.dpt-table td:nth-child(2),
.dpt-table th:nth-child(3),
.dpt-table td:nth-child(3),
.dpt-table th:nth-child(6),
.dpt-table td:nth-child(6) {
    width: 106px;
}

/* Tilgjengelighet column - wider */
.dpt-table th:nth-child(4),
.dpt-table td:nth-child(4) {
    width: 118px;
}

/* Pris per dag column - narrower, right-aligned */
.dpt-table th:nth-child(5),
.dpt-table td:nth-child(5) {
    width: 94px;
    text-align: right;
}

/* Reserver column - right-aligned */
.dpt-table th:nth-child(6),
.dpt-table td:nth-child(6) {
    text-align: right;
}

.dpt-table td:nth-child(6) .dpt-add-btn,
.dpt-table td:nth-child(6) .dpt-quantity {
    margin-left: auto;
}

.dpt-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: var(--dpt-bg-input);
    border-bottom: 1px solid var(--dpt-border);
}

.dpt-table th:first-child {
    padding-left: 20px;
    border-top-left-radius: var(--dpt-radius-lg);
}

.dpt-table th:last-child {
    padding-right: 20px;
    border-top-right-radius: var(--dpt-radius-lg);
}

.dpt-table td {
    padding: 16px;
    border-bottom: 1px solid var(--dpt-border);
    vertical-align: middle;
}

.dpt-table td:first-child {
    padding-left: 20px;
}

.dpt-table td:last-child {
    padding-right: 20px;
}

.dpt-table tr:last-child td {
    border-bottom: none;
}

.dpt-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Product cell */
.dpt-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dpt-product__image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #ffffff;
    padding: 2px;
    flex-shrink: 0;
}

.dpt-product__name {
    font-size: 16px;
    font-weight: 500;
    color: var(--dpt-text-primary);
    text-decoration: none;
    transition: color var(--dpt-transition);
}

.dpt-product__name:hover {
    color: var(--dpt-accent);
}

/* Brand cell */
.dpt-brand-cell {
    font-size: 14px;
    color: var(--dpt-text-secondary);
}

/* Clickable filter in table */
.dpt-clickable-filter {
    cursor: pointer;
    transition: color var(--dpt-transition);
}

.dpt-clickable-filter:hover {
    color: var(--dpt-accent);
}

/* Category cell */
.dpt-category-cell {
    font-size: 14px;
    color: var(--dpt-text-secondary);
}

/* Availability cell */
.dpt-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.dpt-availability__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dpt-availability__dot--available {
    background: var(--dpt-success);
}

.dpt-availability__dot--unavailable {
    background: var(--dpt-error);
}

.dpt-availability__dot--unknown {
    background: var(--dpt-text-muted);
}

.dpt-availability__text {
    color: #ffffff;
}

.dpt-availability__text--available,
.dpt-availability__text--unavailable {
    color: #ffffff;
}

/* Availability skeleton loader */
.dpt-availability--loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpt-availability__skeleton-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dpt-border);
    animation: dpt-skeleton-pulse 1.5s ease-in-out infinite;
}

.dpt-availability__skeleton-text {
    width: 60px;
    height: 14px;
    border-radius: 4px;
    background: var(--dpt-border);
    animation: dpt-skeleton-pulse 1.5s ease-in-out infinite;
    animation-delay: 0.1s;
}

@keyframes dpt-skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Price cell */
.dpt-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--dpt-text-primary);
    white-space: nowrap;
}

.dpt-price__suffix {
    font-size: 12px;
    font-weight: 400;
    color: var(--dpt-text-secondary);
}

/* Quantity controls */
.dpt-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dpt-quantity__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--dpt-bg-input);
    border: 1px solid var(--dpt-border);
    border-radius: 6px;
    color: var(--dpt-text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: background var(--dpt-transition), border-color var(--dpt-transition);
}

.dpt-quantity__btn:hover:not(:disabled) {
    background: var(--dpt-accent);
    border-color: var(--dpt-accent);
}

.dpt-quantity__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dpt-quantity__value {
    min-width: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--dpt-text-primary);
}

.dpt-quantity__value--zero {
    color: var(--dpt-text-muted);
}

/* Add to cart button (when quantity is 0) */
.dpt-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--dpt-accent);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: background var(--dpt-transition);
}

.dpt-add-btn:hover:not(:disabled) {
    background: var(--dpt-accent-hover);
}

.dpt-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state */
.dpt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--dpt-text-secondary);
}

.dpt-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--dpt-border);
    border-top-color: var(--dpt-accent);
    border-radius: 50%;
    animation: dpt-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes dpt-spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.dpt-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--dpt-text-secondary);
}

.dpt-empty__icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.dpt-empty__text {
    font-size: 16px;
}

/* Mobile Cards */
.dpt-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.dpt-card {
    background: var(--dpt-bg-card);
    border: 1px solid var(--dpt-border);
    border-radius: var(--dpt-radius-lg);
    padding: 16px;
}

.dpt-card__header {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.dpt-card__image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--dpt-bg-input);
    flex-shrink: 0;
}

.dpt-card__info {
    flex: 1;
    min-width: 0;
}

.dpt-card__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dpt-text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.dpt-card__name:hover {
    color: var(--dpt-accent);
}

.dpt-card__brand {
    font-size: 13px;
    color: var(--dpt-text-secondary);
    margin-bottom: 8px;
}

.dpt-card__availability {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.dpt-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--dpt-border);
}

.dpt-card__price {
    font-size: 16px;
    font-weight: 600;
    color: var(--dpt-text-primary);
}

/* Mobile filter button - hidden on desktop */
.dpt-filter-btn {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .dpt-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 16px !important;
    }

    .dpt-sidebar {
        display: none !important;
    }

    .dpt-table {
        display: none !important;
    }

    .dpt-cards {
        display: flex !important;
    }

    .dpt-card__brand {
        margin-bottom: 4px;
    }

    .dpt-card__footer {
        border-top: none;
        padding-top: 2px;
    }

    .dpt-card__price::after {
        content: ' per dag';
        font-size: 12px;
        font-weight: 400;
        color: var(--dpt-text-secondary);
    }

    .dpt-filters {
        display: none !important;
    }

    .dpt-container > p:empty,
    .dpt-sidebar + p,
    .dpt-sidebar {
        display: none !important;
    }

    .dpt-header > p {
        display: contents;
    }

    .rental-features-equipment {
        display: none !important;
    }

    .dpt-main {
        grid-column: 1;
    }

    /* Mobile header layout - search full width, filter + sort side by side */
    .dpt-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .dpt-search {
        flex: 1 1 100%;
        min-width: 100%;
    }

    /* Mobile filter button */
    .dpt-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 44px;
        padding: 0 16px;
        background: #18181b;
        border: 1px solid var(--dpt-border);
        border-radius: var(--dpt-radius);
        color: var(--dpt-text-primary);
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        transition: border-color var(--dpt-transition);
        white-space: nowrap;
        flex: 1;
    }

    .dpt-filter-btn:hover {
        border-color: var(--dpt-accent);
    }

    .dpt-filter-btn svg {
        flex-shrink: 0;
    }

    .dpt-sort {
        flex: 1;
    }

    .dpt-sort__select {
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .dpt-container {
        display: grid !important;
        grid-template-columns: 220px 1fr !important;
    }

    .dpt-sidebar {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .dpt-card__header {
        flex-direction: row;
        align-items: flex-start;
    }

    .dpt-card__image {
        width: 60px;
        height: 60px;
        background: #ffffff;
        padding: 2px;
    }
}

/* Toast notification */
.dpt-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 20px;
    background: var(--dpt-bg-card);
    border: 1px solid var(--dpt-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dpt-toast--visible {
    transform: translateY(0);
    opacity: 1;
}

.dpt-toast--success {
    background: #ecfdf5;
    border-color: #047857;
}

.dpt-toast--success .dpt-toast__icon {
    width: 24px;
    height: 24px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dpt-toast--success .dpt-toast__icon svg {
    width: 16px;
    height: 16px;
}

.dpt-toast--success .dpt-toast__title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
    color: #065f46;
}

.dpt-toast--success .dpt-toast__message {
    font-size: 14px;
    color: #047857;
}

.dpt-toast--error {
    border-color: var(--dpt-error);
}

.dpt-toast__content {
    display: flex;
    flex-direction: column;
}

.dpt-toast__message {
    font-size: 14px;
    color: var(--dpt-text-primary);
}

/* Top-positioned toast (mobile add-to-cart) */
.dpt-toast--top {
    bottom: auto;
    top: 20px;
    right: 20px;
    left: 20px;
    transform: translateY(-100px);
}

.dpt-toast--top.dpt-toast--visible {
    transform: translateY(0);
}

/* Updating state for rows */
.dpt-table tr.dpt-updating td {
    opacity: 0.5;
}

.dpt-card.dpt-updating {
    opacity: 0.5;
}

/* In cart indicator */
.dpt-in-cart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--dpt-success);
    margin-top: 4px;
}

.dpt-in-cart__icon {
    font-size: 14px;
}

/* Mobile filter drawer */
.dpt-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dpt-drawer-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
}

.dpt-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: var(--dpt-bg-card);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    display: flex;
    pointer-events: none;
}

.dpt-drawer--visible {
    transform: translateY(0);
    pointer-events: auto;
}

.dpt-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dpt-border);
    flex-shrink: 0;
}

.dpt-drawer__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dpt-text-primary);
}

.dpt-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--dpt-text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--dpt-transition), color var(--dpt-transition);
}

.dpt-drawer__close:hover {
    background: var(--dpt-bg-input);
    color: var(--dpt-text-primary);
}

.dpt-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
}

.dpt-drawer__content .dpt-filter-section__header {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.dpt-drawer__content .dpt-filter-section__title {
    text-align: left !important;
    margin-right: auto !important;
}

.dpt-drawer__content .dpt-filter-section__icon {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.dpt-drawer__footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--dpt-border);
    flex-shrink: 0;
    background: var(--dpt-bg-card);
}

.dpt-drawer__clear {
    flex: 1;
    padding: 14px 20px;
    background: var(--dpt-bg-input);
    border: 1px solid var(--dpt-border);
    border-radius: 8px;
    color: var(--dpt-text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dpt-transition);
}

.dpt-drawer__clear:hover {
    background: var(--dpt-bg-hover);
}

.dpt-drawer__apply {
    flex: 2;
    padding: 14px 20px;
    background: var(--dpt-accent);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dpt-transition);
}

.dpt-drawer__apply:hover {
    background: var(--dpt-accent-hover);
}

/* Prevent body scroll when drawer is open */
body.dpt-drawer-open {
    overflow: hidden;
}
