/* ── Durofloor Core Styles ──────────────────────────────────────────────── */

/* Layout */
.df-collection-wrap {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.df-sidebar {
    flex: 0 0 240px;
    background: #f7f7f7;
    padding: 1.25rem;
    border-radius: 4px;
    position: sticky;
    top: 80px;
}
.df-main {
    flex: 1;
    min-width: 0;
}

/* Sidebar filters */
.df-sidebar h3 {
    margin-top: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #333;
}
.df-filter-group {
    margin-bottom: 1rem;
}
.df-filter-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .3rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.df-filter-group select,
.df-filter-group input[type="number"] {
    width: 100%;
    padding: .4rem .5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: .9rem;
    background: #fff;
}
.df-price-range {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.df-price-range input { width: calc(50% - .5rem); }

/* Buttons */
.df-btn {
    display: inline-block;
    background: #8b6f47;
    color: #fff;
    border: none;
    padding: .55rem 1.1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s;
}
.df-btn:hover { background: #6d5535; color: #fff; }
.df-btn-secondary {
    background: #e0e0e0;
    color: #333;
    margin-left: .5rem;
}
.df-btn-secondary:hover { background: #ccc; color: #333; }
.df-btn-large { padding: .75rem 2rem; font-size: 1rem; }

/* Product grid */
.df-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.df-product-card {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}
.df-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.df-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.df-product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.df-no-image {
    width: 100%;
    height: 160px;
    background: #f0ede8;
}
.df-product-card h3 {
    font-size: .9rem;
    margin: .6rem .75rem .2rem;
    line-height: 1.3;
}
.df-meta {
    font-size: .75rem;
    color: #888;
    margin: 0 .75rem .2rem;
}
.df-price {
    font-size: .95rem;
    font-weight: 700;
    color: #8b6f47;
    margin: 0 .75rem .5rem;
}
.df-add-sample {
    width: 100%;
    border: none;
    background: #f0ede8;
    color: #6d5535;
    padding: .5rem;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    transition: background .2s;
}
.df-add-sample:hover  { background: #e0d9d0; }
.df-add-sample.added  { background: #d4edda; color: #2d6a3f; }
.df-add-sample:disabled { opacity: .5; cursor: not-allowed; }

/* Pagination */
.df-pagination {
    margin-top: 1.5rem;
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}
.df-page-btn {
    padding: .4rem .75rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: .85rem;
    transition: background .2s;
}
.df-page-btn.active,
.df-page-btn:hover { background: #8b6f47; color: #fff; border-color: #8b6f47; }

/* Sample bar */
.df-sample-bar {
    background: #f0ede8;
    border: 1px solid #d4c9bc;
    border-radius: 4px;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}
.df-sample-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    flex: 1;
}
.df-sample-bar li {
    background: #fff;
    border: 1px solid #d4c9bc;
    border-radius: 3px;
    padding: .2rem .5rem;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.df-remove-sample {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
.df-remove-sample:hover { color: #c00; }

/* Dealer locator */
.df-dealer-wrap,
.df-dealer-search { max-width: 760px; }
.df-dealer-form {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.df-dealer-form input[type="text"] {
    padding: .5rem .75rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: .9rem;
    flex: 1;
    min-width: 160px;
}
.df-dealer-form select {
    padding: .5rem .75rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: .9rem;
    background: #fff;
}
.df-dealer-list { display: flex; flex-direction: column; gap: .75rem; }
.df-dealer-card {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 1rem;
    background: #fff;
}
.df-dealer-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.df-distance {
    font-size: .8rem;
    color: #888;
    font-weight: normal;
    margin-left: .5rem;
}
.df-dealer-card address { font-style: normal; color: #555; font-size: .9rem; }
.df-result-count { color: #666; font-size: .9rem; margin-bottom: .75rem; }

/* Sample request page */
.df-sample-request-wrap { max-width: 680px; }
.df-sample-request-wrap h3 {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    border-bottom: 2px solid #f0ede8;
    padding-bottom: .4rem;
}
#df-sr-product-list {
    list-style: none;
    padding: 0;
    margin: .75rem 0 1rem;
}
#df-sr-product-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .6rem;
    background: #f7f7f7;
    border-radius: 3px;
    margin-bottom: .4rem;
    font-size: .9rem;
}
.df-sr-dealer-list { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0 1rem; }
.df-sr-dealer-card {
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    padding: .75rem 1rem;
    cursor: pointer;
    font-size: .9rem;
    transition: border-color .2s, background .2s;
}
.df-sr-dealer-card:hover   { border-color: #8b6f47; }
.df-sr-dealer-card.selected { border-color: #8b6f47; background: #f9f5f0; }
.df-field { margin-bottom: 1rem; }
.df-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .3rem;
    color: #444;
}
.df-field input {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: .9rem;
    box-sizing: border-box;
}
.df-field-half { display: inline-block; width: calc(50% - .4rem); }
.df-field-half + .df-field-half { margin-left: .8rem; }

/* Feedback */
.df-feedback {
    padding: .75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.df-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.df-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Misc */
.df-loading, .df-no-results { color: #888; font-style: italic; }

/* Responsive */
@media (max-width: 680px) {
    .df-collection-wrap { flex-direction: column; }
    .df-sidebar { position: static; flex: none; width: 100%; }
    .df-field-half { width: 100%; display: block; margin-left: 0; }
}
