﻿/* --- SWATCH PANEL STYLING --- */
#swatch-panel {
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 50px 20px;
    margin-top: 20px;
}

.swatch-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; /* Space between swatches */
    max-width: 1200px;
    margin: 0 auto;
}

.swatch-card {
    width: 110px;
    text-align: center;
    transition: transform 0.2s ease;
}

/* THE CROP: This turns your 400x266 rectangle into a 100px circle */
.swatch-frame {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    overflow: hidden;
    border-radius: 50%; /* Perfect Circle */
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swatch-img {
    width: 100%;
    height: 100%;
    /* MAGIC: Crops the sides of your rectangle to fill the circle */
    object-fit: cover !important; 
}

.swatch-card:hover {
    transform: translateY(-5px);
}

.swatch-card:hover .swatch-frame {
    border-color: #d98411; /* Madison Orange Glow */
    box-shadow: 0 6px 15px rgba(217, 132, 17, 0.2);
}

.swatch-label {
    font-size: 13px;
    font-weight: bold;
    color: #444;
    line-height: 1.3;
    text-transform: capitalize;
}

/* --- NEW REFERENCE TOOL BUTTON STYLE --- */
.swatch-toggle-btn {
    display: inline-block !important;
    background-color: transparent !important; /* Outlined / Ghost style */
    color: #555 !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid #ccc !important;     /* Subtle grey border */
    border-radius: 50px !important;         /* Rounded Pill Shape */
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-decoration: none;
    margin: 10px auto;
}

.swatch-toggle-btn:hover {
    background-color: #fff !important;
    border-color: #a52a2a !important;       /* Madison Red border on hover */
    color: #a52a2a !important;              /* Red text on hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.swatch-toggle-wrapper {
    text-align: center;
    width: 100%;
    margin: 10px 0 30px; /* Reduced top margin from 40px to 10px */
}


/* MOBILE: Adjust swatch size for smaller screens */
@media screen and (max-width: 600px) {
    .swatch-card { width: 90px; }
    .swatch-frame { width: 80px; height: 80px; }
}