/* ==========================================================================
   WooCommerce Colour Group Display
   ========================================================================== */

/* Container */
.wcg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.wcg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.wcg-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wcg-tab:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.wcg-tab--active {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.wcg-tab--active:hover {
    background: #374151;
    border-color: #374151;
}

.wcg-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.wcg-tab--active .wcg-tab__count {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Product Grid
   ========================================================================== */
.wcg-grid {
    display: grid;
    grid-template-columns: repeat(var(--wcg-columns, 4), 1fr);
    gap: 25px;
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.wcg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.wcg-card:hover {

}

.wcg-card--hidden {
    display: none;
}

/* Card Image */
.wcg-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9fafb;
}

.wcg-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.wcg-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcg-card:hover .wcg-card__image img {
}

.wcg-card__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
}

/* Card Info */
.wcg-card__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px;
    text-align: center;
    justify-content: center !important;
    align-items: center;
}

.wcg-card__title {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.wcg-card__title a {
    color: #1f2937;
    text-decoration: none;
}

.wcg-card__title a:hover {
}

.wcg-card__colour {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
}

/* Buttons */
.wcg-card__add-to-cart,
.wcg-card__select {
    display: inline-block;
    margin-top: auto;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: #374A37 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 200px;
}

.wcg-card__add-to-cart:hover,
.wcg-card__select:hover {

}

.wcg-card__add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wcg-card__add-to-cart.added {
    background: #059669;
}

/* ==========================================================================
   Notification
   ========================================================================== */
.wcg-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #1f2937;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    animation: wcg-slide-in 0.3s ease;
}

.wcg-notification__link {
    color: #93c5fd !important;
    text-decoration: underline;
    white-space: nowrap;
}

@keyframes wcg-slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Heading (single colour mode)
   ========================================================================== */
.wcg-heading {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

/* ==========================================================================
   No Results
   ========================================================================== */
.wcg-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .wcg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .wcg-tabs {
        gap: 6px;
    }

    .wcg-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .wcg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wcg-card__info {
        padding: 10px;
    }

    .wcg-card__title {
        font-size: 13px;
    }

    .wcg-card__colour {
        font-size: 12px;
    }

    .wcg-card__add-to-cart,
    .wcg-card__select {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .wcg-grid {
        grid-template-columns: 1fr;
    }
}
