/* ===== Cart Drawer ===== */
.cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-drawer-overlay.active { display: block; opacity: 1; }

.cart-drawer {
    position: fixed;
    top: 0; right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-drawer-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #121212;
    margin: 0;
}

.cart-count-badge {
    background: #121212;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    vertical-align: middle;
}

.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #121212;
    padding: 4px;
    display: flex;
    transition: opacity 0.2s;
}
.cart-close-btn:hover { opacity: 0.5; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(18,18,18,0.5);
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #121212;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.8rem;
    color: rgba(18,18,18,0.65);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e5e5;
    width: fit-content;
}

.cart-item-qty button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    color: #121212;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cart-item-qty button:hover { background: #f5f5f5; }

.cart-item-qty span {
    font-size: 0.8rem;
    min-width: 28px;
    text-align: center;
    color: #121212;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(18,18,18,0.4);
    cursor: pointer;
    padding: 4px;
    font-size: 0.75rem;
    text-decoration: underline;
    transition: color 0.2s;
    margin-top: 4px;
    display: inline-block;
}
.cart-item-remove:hover { color: #121212; }

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #121212;
}

.cart-note {
    font-size: 0.75rem;
    color: rgba(18,18,18,0.5);
    margin-bottom: 16px;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: #121212;
    color: #fff;
    border: 1px solid #121212;
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s;
}
.btn-checkout:hover {
    background: transparent;
    color: #121212;
}
.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Add to Cart Button on Product Cards ===== */
.product-card {
    position: relative;
}

.btn-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18,18,18,0.9);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Assistant', sans-serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.product-img-wrap:hover .btn-add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.btn-add-to-cart:hover {
    background: #121212;
}

/* Cart badge on header */
.header-cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #121212;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-btn {
    position: relative;
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #121212;
    color: #fff;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Assistant', sans-serif;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Photo Upload Section ===== */
.upload-section {
    padding: 3rem 0;
    text-align: center;
}

.upload-dropzone {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #121212;
    background: #f0f0f0;
}

.upload-dropzone svg {
    margin-bottom: 1rem;
    color: rgba(18,18,18,0.4);
}

.upload-dropzone p {
    font-size: 0.9rem;
    color: rgba(18,18,18,0.6);
    margin-bottom: 0.3rem;
}

.upload-dropzone .upload-hint {
    font-size: 0.75rem;
    color: rgba(18,18,18,0.4);
}

.upload-preview {
    max-width: 200px;
    margin: 1rem auto 0;
    border-radius: 4px;
}
