/* Filter */
.df-filter-wrap {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.df-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.df-accordion-toggle:hover {
    background: #eee;
}

.df-arrow {
    transition: transform 0.3s;
    font-size: 14px;
    font-weight: bold;
}

.df-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* 2 COLUMN LAYOUT */
#df-form {
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.df-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.df-section label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.df-section input[type="text"],
.df-section input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
}

.df-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.df-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    color: inherit;
}

.df-btn:hover {
    background: #f5f5f5;
}

.df-btn.active {
    background: #1A336B;
    color: #fff;
    border-color: #1A336B;
}

/* 4 column ranges - LONGER INPUTS, MIN/MAX SIDE BY SIDE */
.df-ranges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.df-range label {
    font-size: 10px;
    margin-bottom: 4px;
    display: block;
}

.df-range {
    display: flex;
    flex-direction: column;
}

.df-range-inputs {
    display: flex;
    gap: 8px;
}

.df-range input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.df-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.df-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: inherit;
}

.df-actions button[type="submit"] {
    background: #1A336B;
    color: #fff;
}

.df-actions button[type="button"] {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

/* Table */
.df-table-wrap {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
}

.df-info {
    padding: 10px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    font-weight: 600;
}

.df-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#df-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: inherit;
    min-width: 900px;
}

#df-table thead {
    background: #f8f8f8;
}

#df-table th {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    user-select: none;
    color: inherit;
}

#df-table th:hover {
    background: #eee;
}

/* CENTER AND MIDDLE ALIGN ALL TABLE CELLS */
#df-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
}

#df-table tbody tr:hover {
    background: #fafafa;
}

#df-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto;
    display: block;
}

/* Simple Quantity Input - NO BUTTONS */
.df-qty-input {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    margin: 0 auto;
    display: block;
}

/* Remove number input spinners */
.df-qty-input::-webkit-outer-spin-button,
.df-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.df-qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Navy Blue Add to Cart */
.df-cart-btn {
    padding: 8px 16px;
    border: none;
    background: #1A336B;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: inherit;
    margin: 0 auto;
    display: block;
}

.df-cart-btn:hover {
    background: #152a56;
}

.df-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.df-cart-btn.success {
    background: #28a745;
}

/* Mobile */
@media (max-width: 768px) {
    #df-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .df-ranges {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .df-range-inputs {
        gap: 6px;
    }
    
    .df-range label {
        font-size: 9px;
    }
    
    .df-range input {
        font-size: 10px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .df-ranges {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .df-range-inputs {
        gap: 4px;
    }
    
    .df-range label {
        font-size: 8px;
    }
    
    .df-range input {
        font-size: 9px;
        padding: 5px 6px;
    }
}
