﻿/* ============================================================
   FEATURED CATEGORIES â€” Custom CSS
   WoodMart Child Theme | Prefix: fc-
   ============================================================ */

/* ---- Home page slider gap fix ---- */
.home .wd-content-layout {
    padding-block-start: 0 !important;
}

/* ---- Section ---- */
.fc-section {
    padding: 40px 0;
    width: 100%;
}

.fc-container {
    /*max-width: 1200px;*/
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---- Header ---- */
.fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.fc-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fc-title {
    font-size: 26px;
    font-weight: 700;
    color: #253D4E;
    margin: 0;
    white-space: nowrap;
}

/* ---- Tabs ---- */
.fc-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.fc-tab-item { margin: 0; }

.fc-tab-link {
    display: inline-block;
    padding: 4px 2px;
    margin-right: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #7E7E7E;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.fc-tab-link:hover,
.fc-tab-link.active {
    color: #3BB77E;
    border-bottom-color: #3BB77E;
}

/* ---- Arrow Buttons â€” Green style ---- */
.fc-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.fc-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #3BB77E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3BB77E;
    background: #fff;
    transition: all 0.25s ease;
    user-select: none;
    font-size: 20px;
    line-height: 1;
}

.fc-arrow:hover {
    background-color: #3BB77E;
    color: #fff;
}

/* ---- Slider Cover ---- */
.fc-slider-cover {
    position: relative;
    min-height: 200px;
}

/* ---- Loading Spinner ---- */
.fc-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.75);
    z-index: 10;
    border-radius: 12px;
}

.fc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #3BB77E;
    border-radius: 50%;
    animation: fc-spin 0.7s linear infinite;
}

@keyframes fc-spin {
    to { transform: rotate(360deg); }
}

/* ---- White Background Wrapper ---- */
.fc-slider-cover > .fc-slider {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ---- Slick Slider ---- */
.fc-slider {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fc-slider-cover > .fc-slider {
	background: #F4FFF4;
	border-radius: 6px;
	padding: 24px 16px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0);
}
.fc-slider.fc-loaded {
    opacity: 1;
}

.fc-slider .slick-dots {
    display: none !important;
}

/* ---- Category Card â€” Portrait Style ---- */
.fc-card {
    text-align: center;
    border-radius: 14px;
    padding: 24px 10px 18px;
    margin: 0 6px;
    min-height: 220px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.fc-card:hover {
  background: #fff !important;
  border: 1px solid #BCE3C9;
  -webkit-box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
          box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05);
  -webkit-transition: 0.2s;
  transition: 0.2s;
}


/* ---- Card Image â€” Big Circle ---- */
.fc-card-figure {
    margin: 0 0 16px !important;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-card-figure img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.4s ease;
}

.fc-card:hover .fc-card-figure img {
    transform: scale(1.06);
}

/* ---- Card Title ---- */
.fc-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.fc-card-title a {
    color: #253D4E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fc-card:hover .fc-card-title a {
    color: #3BB77E;
}

/* ---- Card Count ---- */
.fc-card-count {
    font-size: 12px;
    color: #7E7E7E;
    display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
    .fc-container { max-width: 100%; }
}

@media (max-width: 992px) {
    .fc-title { font-size: 22px; }
    .fc-header { flex-direction: column; align-items: flex-start; }
    .fc-arrows { align-self: flex-end; }
    .fc-card { min-height: 200px; }
    .fc-card-figure { width: 85px; height: 85px; }
    .fc-card-figure img { width: 74px; height: 74px; }
}

@media (max-width: 768px) {
    .fc-section { padding: 24px 0; }
    .fc-title { font-size: 18px; }
    .fc-title-wrap { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Tabs horizontal scroll */
    .fc-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .fc-tabs::-webkit-scrollbar { display: none; }
    .fc-tab-link { white-space: nowrap; font-size: 13px; }

    .fc-card { min-height: 170px; padding: 16px 8px 14px; }
    .fc-card-figure { width: 70px; height: 70px; }
    .fc-card-figure img { width: 60px; height: 60px; }
    .fc-card-title { font-size: 12px; }

    .fc-slider-cover > .fc-slider {
        padding: 16px 10px;
    }
}

@media (max-width: 480px) {
    .fc-tab-link { font-size: 12px; }
    .fc-card-figure { width: 60px; height: 60px; }
    .fc-card-figure img { width: 52px; height: 52px; }
}
