﻿/* ── Product Section ── */
.cprod-section {
    padding: 48px 0 64px;
    background: #f9f6f2;
}

/* ── Grid ── */
.cprod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

/* ── Card ── */
.cprod-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .cprod-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    }

/* ── Image ── */
.cprod-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0ebe4;
}

.cprod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cprod-card:hover .cprod-img {
    transform: scale(1.04);
}

/* ── Badge ── */
.cprod-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.cprod-badge--available {
    background: #e8f5e9;
    color: #2e7d32;
}

.cprod-badge--unavailable {
    background: #fdecea;
    color: #c62828;
}

/* ── Body ── */
.cprod-body {
    padding: 16px 18px 10px;
    flex: 1;
}

.cprod-size {
    font-size: 11px;
    color: #c8a07a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 4px;
    font-weight: 600;
}

.cprod-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.cprod-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cprod-notes {
    font-size: 12px;
    color: #a07850;
    background: #fdf6ee;
    border-left: 3px solid #c8a07a;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    margin: 0;
}

/* ── Footer ── */
.cprod-footer {
    padding: 12px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0ebe4;
    gap: 10px;
}

.cprod-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cprod-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.cprod-addon {
    font-size: 11px;
    color: #999;
}

/* ── Button ── */
.cprod-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

    .cprod-btn:hover {
        background: #c8a07a;
        color: #fff;
        transform: scale(1.03);
    }

.cprod-btn--disabled {
    background: #ddd;
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Empty State ── */
.cprod-empty {
    text-align: center;
    padding: 64px 20px;
    color: #999;
    font-size: 15px;
}

    .cprod-empty .cprod-btn {
        margin-top: 16px;
        display: inline-block;
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .cprod-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .cprod-img-wrap {
        height: 150px;
    }

    .cprod-name {
        font-size: 14px;
    }

    .cprod-price {
        font-size: 16px;
    }

    .cprod-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ── Size Row ── */
.cprod-size-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.cprod-size-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.cprod-size-single {
    font-size: 13px;
    font-weight: 600;
    color: #c8a07a;
    background: #fdf6ee;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e8d5be;
}

.cprod-size-select {
    font-size: 13px;
    color: #1a1a1a;
    background: #fdf6ee;
    border: 1px solid #e8d5be;
    border-radius: 8px;
    padding: 5px 28px 5px 10px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c8a07a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s;
}

    .cprod-size-select:hover,
    .cprod-size-select:focus {
        border-color: #c8a07a;
    }