/* ============================================
   KITCHEN RANGES PAGE STYLES
   Woodegy v2.0
   ============================================ */

/* Tools Bar (Top filter/sort bar) */
.tools-bar {
    background-color: #1A1A1A;
    color: #FFF;
    padding: 15px 0;
    margin-bottom: 40px;
}
.tools-inner {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tool-btn {
    background: #2F3631;
    border: 1px solid #444;
    color: #FFF;
    padding: 10px 25px;
    border-radius: 4px;
    font-family: var(--font-family, 'Cairo', sans-serif);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition-normal, 0.3s);
}
.tool-btn:hover { background: #444; }
.tool-btn span { font-weight: bold; }

/* Ranges Grid */
.kitchen-ranges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
}
@media(min-width: 992px) {
    .kitchen-ranges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Range Card */
.kitchen-range-card {
    background: #FFF;
    border: 1px solid var(--border-light, #EBEBEB);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,0.05));
    transition: box-shadow var(--transition-normal);
    position: relative;
}
.kitchen-range-card:hover {
    box-shadow: var(--shadow-lg, 0 15px 30px rgba(0,0,0,0.1));
}

.range-img-wrap {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #EEE;
}
.range-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top Badges */
.range-badge {
    position: absolute;
    top: 20px;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: bold;
    color: #FFF;
    z-index: 2;
}
.range-badge-new { background-color: var(--color-accent, #4CAF50); right: 20px; }
.range-badge-top { background-color: #F5A623; color: #000; left: 20px; }

/* Floating Door Profile Circle */
.door-profile-circle {
    position: absolute;
    bottom: -50px;
    left: 40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #FFF;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 2;
}
.door-profile-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Card Details */
.range-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 220px;
    margin-top: 10px;
}
@media(min-width: 600px) {
    .range-details {
        flex-direction: row;
        justify-content: space-between;
    }
}

.range-info-left { flex: 1; padding-left: 20px; }
.range-info-left h2 {
    font-size: 26px;
    color: #1A1A1A;
    margin: 0 0 5px;
    font-weight: 800;
}
.range-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}
.range-rating {
    color: #F5A623;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.review-count {
    color: #0073e6;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    position: relative;
    z-index: 3;
}
.range-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

/* Color Swatches */
.range-colors-right {
    width: 160px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}
.colors-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    display: block;
    cursor: pointer;
    transition: transform var(--transition-fast, 0.2s);
}
.color-swatch:hover { transform: scale(1.2); }
.more-colors {
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    font-weight: bold;
}

/* Full card link overlay */
.full-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* ============================================
   ARCHIVE PAGE HEADER
   ============================================ */
.archive-page-header {
    background-color: var(--color-surface, #f4f5f7);
    padding: 40px 0 20px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
}
.archive-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary, #1e5c1e);
}
.archive-products-wrap {
    padding-top: 10px;
    padding-bottom: 60px;
}

/* ============================================
   CATEGORY INDEX (Visual Circle Filter)
   ============================================ */
.cat-index-section {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 30px 0;
}
.cat-index-section.cat-index--unit-types {
    background: var(--color-surface, #f8f8f8);
    padding: 24px 0;
}
.cat-index-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.cat-index-row::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .cat-index-row { gap: 30px; }
}

.cat-index-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    flex: 0 0 auto;
    width: 90px;
    transition: color 0.2s;
}
@media (min-width: 768px) {
    .cat-index-item { width: 110px; }
}
.cat-index-item:hover { color: var(--color-primary, #1e5c1e); }

.cat-index-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
@media (min-width: 768px) {
    .cat-index-circle { width: 100px; height: 100px; }
}
.cat-index-item:hover .cat-index-circle,
.cat-index-item.active-all .cat-index-circle {
    border-color: var(--color-primary, #1e5c1e);
    box-shadow: 0 4px 16px rgba(30,92,30,0.15);
}
.cat-index-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-index-circle svg {
    stroke: #555;
    transition: stroke 0.2s;
}
.cat-index-item:hover .cat-index-circle svg {
    stroke: var(--color-primary, #1e5c1e);
}
.cat-index-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

/* ============================================
   VISUAL ROUND FILTERS (Units Page — legacy)
   ============================================ */
.visual-filters-section {
    padding: 30px 0 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
@media(min-width: 768px) {
    .visual-filters-section { gap: 40px; }
}
.filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: #113629;
    width: 110px;
}
.filter-icon-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #FFF;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    padding: 15px;
    box-sizing: border-box;
}
.filter-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}
.filter-item:hover .filter-icon-wrap,
.filter-item.active .filter-icon-wrap {
    border-color: #113629;
    box-shadow: var(--shadow-md);
}
.filter-item:hover img { transform: scale(1.1); }
.filter-title {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
}

/* Pill Filters */
.pill-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.pill-filters-inner {
    background-color: #FFF;
    border-radius: 30px;
    display: inline-flex;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pill-btn {
    background: transparent;
    border: none;
    padding: 12px 25px;
    font-family: var(--font-family, 'Cairo', sans-serif);
    font-size: 13px;
    font-weight: 800;
    color: #333;
    cursor: pointer;
    transition: all var(--transition-normal);
}
.pill-btn.active {
    background-color: #113629;
    color: #FFF;
}
.pill-btn:hover:not(.active) {
    background-color: #F5F5F5;
}
