/* ==========================================================
   Puppia MiniBox  —  pup-mb- prefix
   Theme: Puppia/puppia_b2c
   Version: 1.1.0
   ========================================================== */

/* ── Accessibility helper ────────────────────────────────── */
.pup-mb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.pup-mb-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 500px;
    padding: 20px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
}

/* ── Row shared ──────────────────────────────────────────── */
.pup-mb-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

/* ── Row 1 : image (225px square, 1:1) ──────────────────── */
.pup-mb-img-link {
    display: block;
    flex: 0 0 225px;
    text-decoration: none;
    line-height: 0;
}

.pup-mb-img {
    display: block;
    width: 225px;
    height: 225px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.pup-mb-img-link:hover .pup-mb-img {
    opacity: 0.88;
}

.pup-mb-img--placeholder {
    width: 225px;
    height: 225px;
    background: #f2f2f2;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* ── Row 1 : info (225px) — text pushed 30px down ───────── */
.pup-mb-info {
    flex: 0 0 225px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 30px;
}

.pup-mb-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.45;
    word-break: break-word;
}

.pup-mb-name:hover {
    color: #444444;
    text-decoration: underline;
}

.pup-mb-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.15s ease;
}

.pup-mb-price--na {
    color: #999999;
    font-weight: 500;
    font-size: 14px;
}

/* ── Row 2 : options + ATC — 160 | 120 | 160 ────────────── */
.pup-mb-row--actions {
    align-items: center;
}

.pup-mb-select-wrap {
    display: flex;
    flex-direction: column;
}

/* Color select: 160px */
.pup-mb-color {
    flex: 0 0 160px;
}

.pup-mb-color .pup-mb-select {
    width: 160px;
}

/* Size select: 120px */
.pup-mb-size {
    flex: 0 0 120px;
}

.pup-mb-size .pup-mb-select {
    width: 120px;
}

/* Shared select styles */
.pup-mb-select {
    height: 38px;
    padding: 0 28px 0 10px;
    font-size: 13px;
    color: #1a1a1a;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pup-mb-select:hover {
    border-color: #999999;
}

.pup-mb-select:focus {
    outline: none;
    border-color: #555555;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* ── Add to Cart button — 160px ──────────────────────────── */
.pup-mb-atc {
    flex: 0 0 160px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.pup-mb-atc:hover {
    background: #333333;
    border-color: #333333;
}

.pup-mb-atc:active {
    background: #000000;
    border-color: #000000;
    transform: scale(0.98);
}

.pup-mb-atc:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.pup-mb-atc--loading {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

.pup-mb-atc--unavailable {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Theme overrides: Puppia/puppia_b2c ─────────────────── */
/*
   Override in:
   app/design/frontend/Puppia/puppia_b2c/Puppia_MiniBox/web/css/puppia-minibox.css
*/
