/* ========================================
   Coffee Pie - Product Page Styles
   Only product-content styles.
   Header: /header.css | Footer: /footer.css
   ======================================== */

/* --- Base reset: mirrors the Avo platform inline styles in index.html --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

body {
    --scrollbar-width: 0px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    overflow-x: clip;
    padding-top: 60px;
}

/* --- Mobile hamburger menu toggle (works with header.html) --- */
@media (max-width: 860px) {
    .cp-menu--open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding: 12px 24px;
        z-index: 99;
    }
}

/* --- Product Grid --- */
.cp-product {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 60vh;
}
.cp-product__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 860px) {
    .cp-product__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Product Image --- */
.cp-product__image-wrap {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-product__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* --- Product Info --- */
.cp-product__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cp-product__category {
    font-family: helvetica-w01-roman, helvetica, sans-serif;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
.cp-product__title {
    font-family: helvetica-w01-bold, helvetica, sans-serif;
    font-size: 28px;
    color: #333333;
    margin: 0;
    line-height: 1.3;
}
.cp-product__price {
    font-family: helvetica-w01-bold, helvetica, sans-serif;
    font-size: 32px;
    color: #333333;
    margin: 0;
}
.cp-product__rental-notice {
    font-family: helvetica-w01-roman, helvetica, sans-serif;
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin: 0;
}

/* --- Quantity --- */
.cp-product__quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cp-product__quantity label {
    font-family: helvetica-w01-roman, helvetica, sans-serif;
    font-size: 14px;
    color: #333;
}
.cp-product__qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.cp-product__qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cp-product__qty-btn:hover {
    background: #e0e0e0;
}
.cp-product__qty-input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    text-align: center;
    font-family: helvetica, sans-serif;
    font-size: 14px;
    -moz-appearance: textfield;
}
.cp-product__qty-input::-webkit-outer-spin-button,
.cp-product__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Add to Cart Button --- */
.cp-product__add-btn {
    width: 100%;
    padding: 14px 24px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: helvetica-w01-roman, helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.cp-product__add-btn::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
}
.cp-product__add-btn:hover {
    background: #e0e0e0;
}
.cp-product__add-btn:active {
    transform: scale(0.98);
}
.cp-product__add-btn--added {
    background: #1a8a3f !important;
    color: #ffffff !important;
}
