/* Explain: Styling for reusable UI components like buttons, cards, and badges. */
.btn-warm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warm:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-warm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-warm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 1.5px solid var(--primzary-color);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-warm:hover {
    background: var(--surface-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.25s ease;
}

.icon-btn:hover {
    background: var(--surface-color);
    border-color: var(--secondary-color);
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--surface-color);
    color: var(--text-color);
    transition: all 0.25s ease;
}

.cart-btn:hover {
    background: var(--surface-alt-color);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.nav-link:hover {
    background: var(--surface-color);
    color: var(--primary-color);
}

.mobile-link {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.mobile-link:last-child {
    border-bottom: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--primary-color);
    color: #fff;
}

.brand-logo {
    display: block;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.card-soft {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-color);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.05);
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
    padding: 1.1rem;
}

.badge-soft {
    display: inline-block;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--accent-color);
    color: var(--text-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chip:hover {
    border-color: var(--secondary-color);
}

.chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.size-btn {
    min-width: 48px;
    height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--primary-color);
}

.size-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--accent-color);
    font-size: 0.78rem;
}

.gallery-thumb {
    width: 84px;
    height: 84px;
    flex: none;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.is-active {
    border-color: var(--primary-color);
}

.filter-panel {
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
}

.filter-group + .filter-group {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.filter-title {
    margin-bottom: 0.65rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.range-warm {
    width: 100%;
    accent-color: var(--primary-color);
}

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.field-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 107, 74, 0.18);
}

textarea.field-input {
    min-height: 130px;
    resize: vertical;
}

.qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: #fff;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--surface-color);
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: var(--surface-alt-color);
}

.qty-input {
    width: 52px;
    border: none;
    background: transparent;
    color: var(--text-color);
    text-align: center;
    font-weight: 700;
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 1.25rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 80;
    max-width: 90vw;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-full);
    background: var(--text-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: var(--shadow-hover);
}

.toast-error {
    background: var(--danger-color);
}